RaiseErrorStatusMsg
Configuration Manager 中的 Windows Management Instrumentation (WMI) 類別方法會建立錯誤狀態消息。
下列語法是從受控物件格式 (MOF) 程式代碼中簡化,並定義方法。
語法
UInt32 RaiseErrorStatusMsg(
String MessageText,
UInt32 MessageType,
UInt32 Win32Error,
UInt32 ProcessID,
UInt32 ThreadID,
DateTime Time,
UInt32 AttrIDs[],
String AttrValues[],
String TopLevelSiteCode
);
參數
MessageText
資料類型: String
限定符:[in]
要在訊息中使用的文字。
MessageType
資料類型: UInt32
限定符:[in]
郵件類型。 可能的值是由 SMS_StatusMessage Server WMI 類別的 屬性所MessageType
定義。
Win32Error
資料類型: UInt32
限定符:[in, optional]
與狀態消息相關聯的 Win32 錯誤碼。
ProcessID
資料類型: UInt32
限定符:[in, optional]
建立訊息之進程的標識碼。 預設值為 0。
ThreadID
資料類型: UInt32
限定符:[in, optional]
建立訊息之線程的標識碼。 預設值為 0。
Time
資料類型: DateTime
限定符:[in, optional]
建立狀態消息的日期和時間,在通用協調時間 (UTC) 。 預設值表示目前的時間。
AttrIDs
數據類型: UInt32
陣列
限定符:[in, optional]
訊息屬性的標識碼。
AttrValues
數據類型: String
陣列
限定符:[in, optional]
訊息屬性的值。
TopLevelSiteCode
資料類型: String
限定符:[in, optional]
這個屬性已被取代。
傳回值
UInt32
數據類型。
需求
運行時間需求
如需詳細資訊,請參閱 Configuration Manager 伺服器運行時間需求。
開發需求
如需詳細資訊,請參閱 Configuration Manager 伺服器開發需求。