Export (0) Print
Expand All

IFsrmPropertyDefinition::PossibleValues property

The possible values to which the property can be set.

This property is read/write.

Syntax


HRESULT put_PossibleValues(
  [in]   SAFEARRAY(VARIANT) possibleValues
);

HRESULT get_PossibleValues(
  [out]  SAFEARRAY(VARIANT) *pPossibleValues
);

Property value

A SAFEARRAY of VARIANTs that contains one or more possible values to which the property can be set. Set the variant type of each variant to VT_BSTR. Use the bstrVal member to specify the possible value.

Each possible value is limited to 100 characters. You can specify as many values as needed.

To clear the list of values, set to NULL or an empty array.

Error codes

The method returns the following return values.

NameMeaning
S_OK

Success

E_INVALIDARG

An attempt is made to set a possibleValues string that is too long, or the possibleValues parameter is not of type VT_BSTR.

FSRM_E_OBJECT_IN_USE

A value that was removed from the list is in use.

Remarks

You must specify a possible values list if the property's type is FsrmPropertyDefinitionType_OrderedList or FsrmPropertyDefinitionType_MultiChoiceList.

You cannot delete a possible value from the list if a rule specifies the value (see IFsrmClassificationRule.Value). Deleting the value does not remove the value from files that are currently classified using that value.

You can change the order of the values in the list. For ordered lists, changing the order can affect aggregation the next time classification runs.

To specify descriptions for each possible value, set the IFsrmPropertyDefinition.ValueDescriptions property.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

DLL

SrmSvc.dll

IID

IID_IFsrmPropertyDefinition is defined as ede0150f-e9a3-419c-877c-01fe5d24c5d3

See also

IFsrmPropertyDefinition

 

 

Show:
© 2015 Microsoft