Edit

ICCMEvent::SetProperty Method

In Configuration Manager, the ICcmEvent::SetProperty method sets an event property.

Syntax

[C++]
HRESULT ICcmEvent::SetProperty
(
      BSTR sPropName,
   VARIANT* vPropValue
);

Parameters

sPropName Data type: BSTR

Qualifiers: [in]

Name of the property to set. This must correspond to a property name in the Windows Management Instrumentation (WMI) event class.

vPropValue Data type: VARIANT

Qualifiers: [in]

Pointer to the new value for the property.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following:

S_OK The method succeeded.

Remarks

Your application must set the EventType property before calling this method.

Requirements

Smscore.dll.

Runtime Requirements

For more information, see Configuration Manager Client Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Client Development Requirements.

See Also

SMSEvent Class (client)