3.2.4.2.38.5 AppliesTo (put) (Opnum 26)

The AppliesTo (put) method sets the type of the property definition.

 [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION2 | 0x03)), helpstring("This property contains the object types the property definition can apply to")] HRESULT AppliesTo(
   [in] long appliesTo
 );

appliesTo: Contains the type of the property definition.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80070057

E_INVALIDARG

The appliesTo parameter is not a valid FsrmPropertyDefinitionAppliesTo (section 2.2.2.3.1.1) value.

Upon receiving this message, the server MUST validate parameters:

  • Verify that appliesTo contains a valid FsrmPropertyDefinitionAppliesTo (section 2.2.2.3.1.1) value.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

The server MUST set the Property Definition.AppliesTo to appliesTo.