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
For more information, see Configuration Manager Client Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Client Development Requirements.
See Also
Send comments about this topic to Microsoft.