Export (0) Print
Expand All

IFsrmFileManagementJob::CreatePropertyCondition method

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMFileManagementJob class.]

Creates a new property condition and adds it to the collection of property conditions.

Syntax


HRESULT CreatePropertyCondition(
  [in]   BSTR name,
  [out]  IFsrmPropertyCondition **pPropertyCondition
);

Parameters

name [in]

The name of the property definition that the condition applies to. To enumerate the defined property definitions, call the IFsrmClassificationManager::EnumPropertyDefinitions method.

pPropertyCondition [out]

An IFsrmPropertyCondition interface that you use to define the newly created property condition.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

E_INVALIDARG

Returned for any of the following reasons:

  • The name is empty.
  • The name parameter does not conform to the requirements for a property definitions name.
FSRM_E_ALREADY_EXISTS

A property condition with the specified name already exists.

FSRM_E_NOT_FOUND

A property definition with the specified name does not exist.

 

Remarks

To enumerate the collection of property conditions associated with the job, access the PropertyConditions property.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

DLL

SrmSvc.dll

IID

IID_IFsrmFileManagementJob is defined as 0770687e-9f36-4d6f-8778-599d188461c9

See also

IFsrmFileManagementJob
MSFT_FSRMFileManagementJob

 

 

Show:
© 2014 Microsoft