IContextProperties::GetProperty method (comsvcs.h)

Retrieves a context object property.

Syntax

HRESULT GetProperty(
  [in]  BSTR    name,
  [out] VARIANT *pProperty
);

Parameters

[in] name

The name of the context object property to be retrieved.

The following are IIS intrinsic properties.

  • Application
  • Request
  • Response
  • Server
  • Session
The following is the COMTI intrinsic property:
  • host-security-callback.cedar.microsoft.com

[out] pProperty

A pointer to the property.

Return value

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

Remarks

To retrieve an IIS object, call QueryInterface using the VT_DISPATCH member of the returned VARIANT for the interface to the IIS object (for example, IResponse for the Response object).

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 comsvcs.h

See also

IContextProperties