IFsrmClassificationManager::EnumFileProperties method

Enumerates the properties of the specified file.

Syntax

HRESULT EnumFileProperties(
  BSTR                       filePath,
  FsrmGetFilePropertyOptions options,
  IFsrmCollection            **fileProperties
);

Parameters

filePath

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

options

The option to use for enumerating the file's properties. For possible values, see the FsrmGetFilePropertyOptions enumeration.

fileProperties

An IFsrmCollection interface that contains a collection of file properties. Each item in the collection is a VARIANT of type VT_DISPATCH. Query the pdispVal member of the variant for the IFsrmProperty interface.

Return Value

The method returns the following return values.

Remarks

FSRM asks the specified storage modules (see the options parameter) to return all the properties for the file for which they are responsible. For storage modules that embed the properties in the file, the list will include all properties embedded in the file (not just those defined by FSRM).

If the options parameter is set to FsrmGetFilePropertyOptions_None, FSRM reruns classification on the file to ensure the correct value is returned.

Examples

For examples in C# and PowerShell see Accessing Classification Properties.

Requirements

   
Minimum supported client Windows 8
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header fsrmpipeline.h (include FsrmPipeline.h, FsrmTlb.h)
DLL SrmSvc.dll

See Also

FsrmClassificationManager

IFsrmClassificationManager

IFsrmClassificationManager2

IFsrmClassificationManager::ClearFileProperty

IFsrmClassificationManager::GetFileProperty

IFsrmClassificationManager::SetFileProperty

MSFT_FSRMClassification