Share via


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: String

    Qualifiers: [in]

    Text to use in the message.

  • Win32Error
    Data type: UInt32

    Qualifiers: [in, optional]

    Win32 error code associated with the status message.

  • ProcessID
    Data type: UInt32

    Qualifiers: [in, optional]

    ID of the process that created the message. The default value is 0.

  • ThreadID
    Data type: UInt32

    Qualifiers: [in, optional]

    ID of the thread that created the message. The default value is 0.

  • Time
    Data type: DateTime

    Qualifiers: [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 Array

    Qualifiers: [in, optional]

    IDs of message attributes.

  • AttrValues
    Data type: String Array

    Qualifiers: [in, optional]

    Values of message attributes.

  • TopLevelSiteCode
    Data type: String

    Qualifiers: [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.

See Also

Concepts

SMS_StatusMessage Server WMI Class