Share via


ISpObjectTokenEnumBuilder::SetAttribs

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

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method sets required and optional attributes of the object token enumerator. This method can be called only once per object.

Syntax

HRESULT SetAttribs(
  const WCHAR* pszReqAttribs,
  const WCHAR* pszOptAttribs
);

Parameters

  • pszReqAttribs
    [in] Pointer to a null-terminated string specifying required attributes.
  • pszOptAttribs
    [in] Pointer to a null-terminated string specifying optional attributes.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

SPERR_ALREADY_INITIALIZED

The object has already been initialized.

E_OUTOFMEMORY

Exceeded available memory.

FAILED(hr)

Appropriate error message.

Requirements

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

See Also

Reference

ISpObjectTokenEnumBuilder
SAPI Interfaces