RaiseErrorStatusMsg Method in Class SMS_StatusMessage
Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2
In Configuration Manager, the RaiseErrorStatusMsg Windows Management Instrumentation (WMI) class method creates an error status message.
The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.
UInt32 RaiseErrorStatusMsg(
String MessageText,
UInt32 MessageType,
UInt32 Win32Error,
UInt32 ProcessID,
UInt32 ThreadID,
DateTime Time,
UInt32 AttrIDs[],
String AttrValues[],
String TopLevelSiteCode
);
Parameters
MessageText
Data type: StringQualifiers: [in]
Text to use in the message.
MessageType
Data type: UInt32Qualifiers: [in]
The message type. Possible values are defined by the MessageType property of SMS_StatusMessage Server WMI Class.
Win32Error
Data type: UInt32Qualifiers: [in, optional]
Win32 error code associated with the status message.
ProcessID
Data type: UInt32Qualifiers: [in, optional]
ID of the process that created the message. The default value is 0.
ThreadID
Data type: UInt32Qualifiers: [in, optional]
ID of the thread that created the message. The default value is 0.
Time
Data type: DateTimeQualifiers: [in, optional]
Date and time, in Universal Coordinated Time (UTC), when the status message was created. The default value indicates current time.
AttrIDs
Data type: UInt32 ArrayQualifiers: [in, optional]
IDs of message attributes.
AttrValues
Data type: String ArrayQualifiers: [in, optional]
Values of message attributes.
TopLevelSiteCode
Data type: StringQualifiers: [in, optional]
Site code of top site to which the message can be replicated.
Return Values
A UInt32 data type.
Requirements
Runtime Requirements
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.