Share via


FsrmClassificationManagerClass.ClearFileProperty Method (String, String)

 

Attempts to remove the specified property from the file or folder.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

public virtual void ClearFileProperty(
    string filePath,
    string property
)
public:
virtual void ClearFileProperty(
    String^ filePath,
    String^ property
)
abstract ClearFileProperty : 
        filePath:string *
        property:string -> unit
override ClearFileProperty : 
        filePath:string *
        property:string -> unit
Public Overridable Sub ClearFileProperty (
    filePath As String,
    property As String
)

Parameters

  • filePath
    Type: System.String

    The file that contains the property that you want to remove. You must specify an absolute path to the file. You cannot specify a file share.

  • property
    Type: System.String

    The name of the property to remove from the file.

Implements

IFsrmClassificationManager2.ClearFileProperty(String, String)

Remarks

Windows Server 2008 R2: Only files are supported until Windows Server 2012.

The property is removed from the file if the storage module is able to remove the property; otherwise, the property's string is cleared to an empty string.

See Also

IFsrmClassificationManager2
IFsrmClassificationManager
GetFileProperty
SetFileProperty
FsrmClassificationManagerClass Class
Microsoft.Storage Namespace
MSFT_FSRMClassification

Return to top