IEventPublisher::GetDefaultProperty method (eventsys.h)

Retrieves a named property and its value from the property bag associated with the event publisher.


HRESULT GetDefaultProperty(
  [in]          BSTR    bstrPropertyName,
  [out, retval] VARIANT *propertyValue


[in] bstrPropertyName

The name of the property whose value is to be retrieved.

[out, retval] propertyValue

A pointer to the variable that receives the property.

Return value

The possible return values include E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.


An EventPublisher object includes a property bag that can contain name and value pairs. Objects in the event system, including subscribers, can add, modify, and read these properties.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header eventsys.h

See also