共用方式為


FsrmClassificationManagerClass.GetFileProperty Method (String, String, _FsrmGetFilePropertyOptions)

 

Retrieves the specified property from the file or folder.Windows Server 2008 R2:  Only files are supported until Windows Server 2012.

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

Syntax

public virtual IFsrmProperty GetFileProperty(
    string filePath,
    string PropertyName,
    _FsrmGetFilePropertyOptions options = _FsrmGetFilePropertyOptions.FsrmGetFilePropertyOptions_None
)
public:
virtual IFsrmProperty^ GetFileProperty(
    String^ filePath,
    String^ PropertyName,
    _FsrmGetFilePropertyOptions options = _FsrmGetFilePropertyOptions::FsrmGetFilePropertyOptions_None
)
abstract GetFileProperty : 
        filePath:string *
        PropertyName:string *
        options:_FsrmGetFilePropertyOptions = _FsrmGetFilePropertyOptions.FsrmGetFilePropertyOptions_None -> IFsrmProperty
override GetFileProperty : 
        filePath:string *
        PropertyName:string *
        options:_FsrmGetFilePropertyOptions = _FsrmGetFilePropertyOptions.FsrmGetFilePropertyOptions_None -> IFsrmProperty
Public Overridable Function GetFileProperty (
    filePath As String,
    PropertyName As String,
    options As _FsrmGetFilePropertyOptions
) As IFsrmProperty

Parameters

  • filePath
    Type: System.String

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

  • PropertyName
    Type: System.String

    The name of the property to retrieve. Must not exceed 100 characters in length.

Return Value

Type: Microsoft.Storage.IFsrmProperty

Returns a IFsrmProperty containing the retrieved property.

Implements

IFsrmClassificationManager2.GetFileProperty(String, String, _FsrmGetFilePropertyOptions)

Remarks

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

FSRM asks the specified storage modules (see the options parameter) to retrieve the property from the file. If the options parameter is set to FsrmGetFilePropertyOptions_None, FSRM reruns classification on the file to ensure the correct value is returned.

See Also

IFsrmClassificationManager2
IFsrmClassificationManager
ClearFileProperty
EnumFileProperties
SetFileProperty
FsrmClassificationManager
FsrmClassificationManagerClass Class
Microsoft.Storage Namespace
MSFT_FSRMClassification

Return to top