This method sorts the list of enumerated object tokens. If the optional attributes of the object token enumerator have been set, the first token in the list after a call to Sort will be the token that best matches the optional attributes, instead of the token referenced in the call to Sort.
HRESULT Sort(const WCHAR* pszTokenIdToListFirst);
Parameters
- pszTokenIdToListFirst
[in] Pointer to a null-terminated string specifying the identifier of the first object token in the sorted list.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | Invalid pointer. |
SPERR_ALREADY_INITIALIZED | The object has already been initialized. |
FAILED(hr) | Appropriate error message. |
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.
See Also
ISpObjectTokenEnumBuilder | SAPI Interfaces
Send Feedback on this topic to the authors