3.2.4.2.37.6 PossibleValues (get) (Opnum 16)

The PossibleValues (get) method returns the Possible Value Definition.Names for the Possible Values of the property definition.

 [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x03))] HRESULT PossibleValues(
   [out, retval] SAFEARRAY(VARIANT)* possibleValues
 );

possibleValues: Pointer to a variable that upon completion contains the array of Possible Value Definition.Names for 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 possibleValues parameter is NULL.

 Upon receiving this message, the server MUST validate parameters:

  • Verify that possibleValues is not NULL.

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

 The server MUST set the elements of the possibleValues array to the Possible Value Definition.Name property of the list of possible values of the property definition.