Export (0) Print
Expand All

IFsrmClassificationManager2::ClassifyFiles method

This method is used to perform bulk enumeration, setting, and clearing of file properties.

Syntax


HRESULT ClassifyFiles(
  [in]          SAFEARRAY(VARIANT) filePaths,
  [in, unique]  SAFEARRAY(VARIANT) propertyNames,
  [in, unique]  SAFEARRAY(VARIANT) propertyValues,
  [in]          FsrmGetFilePropertyOptions options
);

Parameters

filePaths [in]

A list of the file paths. The SAFEARRAY contains variants of type VT_BSTR. For each item in the array, use the bstrVal member to access the property name.

propertyNames [in]

A list of the property names. The SAFEARRAY contains variants of type VT_BSTR. For each item in the array, use the bstrVal member to access the property name.

propertyValues [in]

A list of the property values.

options [in]

Options for the operation as enumerated by the FsrmGetFilePropertyOptions enumeration. The default value is FsrmGetFilePropertyOptions_None.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

FSRM_E_CLASSIFICATION_CANCELED

The OnFile event handler method returned VARIANT_FALSE.

 

Examples

For an example that demonstrates this method see Classifying Files.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

FsrmPipeline.h (include FsrmPipeline.h or FsrmTlb.h)

IDL

FsrmPipeline.idl

DLL

SrmSvc.dll

CLSID

CLSID_FsrmClassificationManager is defined as b15c0e47-c391-45b9-95c8-eb596c853f3a

IID

IID_IFsrmClassificationManager2 is defined as 0004c1c9-127e-4765-ba07-6a3147bca112

See also

IFsrmClassificationManager2
FsrmGetFilePropertyOptions
FsrmClassificationManager
MSFT_FSRMClassification

 

 

Show:
© 2014 Microsoft