共用方式為


IFsrmClassificationManager2.SetFileProperty Method (String, String, String)

 

Sets the value of the specified property in the file or folder.

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

Syntax

void SetFileProperty(
    string filePath,
    string PropertyName,
    string propertyValue
)
void SetFileProperty(
    String^ filePath,
    String^ PropertyName,
    String^ propertyValue
)
abstract SetFileProperty : 
        filePath:string *
        PropertyName:string *
        propertyValue:string -> unit
Sub SetFileProperty (
    filePath As String,
    PropertyName As String,
    propertyValue As String
)

Parameters

  • filePath
    Type: System.String

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

  • PropertyName
    Type: System.String

    The name of the property whose value you want to set.

  • propertyValue
    Type: System.String

    The value to set the specified property to.

Implements

IFsrmClassificationManager.SetFileProperty(String, String, String)

Remarks

The method verifies that the property value is valid for the property's type. For example, for an ordered or multiple choice list, the method verifies that the value is a member of the list; for a Boolean property, the method verifies that the value is the string "0" or "1"; and for a date, the method verifies that the value is a 64-bit decimal value expressed as a string. The method supports only property definitions that are available on the server whose AppliesTo property has the FsrmPropertyDefinitionAppliesTo_Files bit set (see the _FsrmPropertyDefinitionAppliesTo enumeration).

See Also

IFsrmClassificationManager2 Interface
Microsoft.Storage Namespace

Return to top