IEventPublisher::PutDefaultProperty method

Writes a named property and its value to the property bag associated with the event publisher.

Syntax


HRESULT PutDefaultProperty(
  [in] BSTR    bstrPropertyName,
  [in] VARIANT *propertyValue
);

Parameters

bstrPropertyName [in]

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

propertyValue [in]

The new value for the property.

Return value

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

Remarks

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

EventSys.h

IDL

EventSys.idl

IID

IID_IEventPublisher is defined as E341516B-2E32-11D1-9964-00C04FBBB345

See also

IEventPublisher

 

 

Show: