3.2.4.2.37.5 Type (put) (Opnum 15)

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

 [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x02))] HRESULT Type(
   [in] FsrmPropertyDefinitionType type
 );

type: 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 type parameter is not a valid FsrmPropertyDefinitionType (section 2.2.2.3.1.1) value.

Upon receiving this message, the server MUST validate parameters:

  • Verify that type contains a valid FsrmPropertyDefinitionType (section 2.2.2.3.1.1) value.

    If the FsrmPropertyDefinitionType value is invalid, the server SHOULD return E_INVALIDARG. <66>

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

 The server MUST set the Property Definition.Type to type.