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

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

Parameters

sPropName


Data type: BSTRQualifiers: [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: VARIANTQualifiers: [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 ICCMEvent::EventType Property before calling this method.

Requirements

Smscore.dll.

Runtime Requirements

Development Requirements

See Also

Other Resources

SMSEvent Class


Send comments about this topic to Microsoft.