Share via


IEnumSpObjectTokens::Item

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method locates a specific token in the enumeration.

Syntax

HRESULT Item(
  ULONG Index, 
  ISpObjectToken** ppToken
);

Parameters

  • Index
    [in] Value indicating the token to locate in the enumeration sequence.
  • ppToken
    [out] Address of a pointer to the ISpObjectToken interface for the located token.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

SPERR_NO_MORE_ITEMS

Index is more than the amount of items available.

E_POINTER

ppToken is bad or invalid.

SPERR_UNINITIALIZED

Attribute parser interface is not initialized.

FAILED(hr)

Appropriate error message.

Requirements

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

IEnumSpObjectTokens
SAPI Interfaces