IContext::SetProperty method (objidlbase.h)

Adds the specified context property to the object context.

Syntax

HRESULT SetProperty(
  [in] REFGUID  rpolicyId,
  [in] CPFLAGS  flags,
  [in] IUnknown *pUnk
);

Parameters

[in] rpolicyId

A GUID that uniquely identifies this context property.

[in] flags

This parameter is reserved and must be zero.

[in] pUnk

A pointer to the context property to be added.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidlbase.h (include ObjIdl.h)

See also

IContext