MessageUtils.WriteLog 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WriteLog(EventLogEntryType, Int32, String) | |
WriteLog(EventLogEntryType, Int32, String, Object) | |
WriteLog(EventLogEntryType, Int32, String, Object, Object) |
WriteLog(EventLogEntryType, Int32, String)
public:
static void WriteLog(System::Diagnostics::EventLogEntryType type, int eventId, System::String ^ msgId);
public static void WriteLog (System.Diagnostics.EventLogEntryType type, int eventId, string msgId);
static member WriteLog : System.Diagnostics.EventLogEntryType * int * string -> unit
Public Shared Sub WriteLog (type As EventLogEntryType, eventId As Integer, msgId As String)
参数
- type
- EventLogEntryType
- eventId
- Int32
- msgId
- String
适用于
WriteLog(EventLogEntryType, Int32, String, Object)
public:
static void WriteLog(System::Diagnostics::EventLogEntryType type, int eventId, System::String ^ msgId, System::Object ^ arg1);
public static void WriteLog (System.Diagnostics.EventLogEntryType type, int eventId, string msgId, object arg1);
static member WriteLog : System.Diagnostics.EventLogEntryType * int * string * obj -> unit
Public Shared Sub WriteLog (type As EventLogEntryType, eventId As Integer, msgId As String, arg1 As Object)
参数
- type
- EventLogEntryType
- eventId
- Int32
- msgId
- String
- arg1
- Object
适用于
WriteLog(EventLogEntryType, Int32, String, Object, Object)
public:
static void WriteLog(System::Diagnostics::EventLogEntryType type, int eventId, System::String ^ msgId, System::Object ^ arg1, System::Object ^ arg2);
public static void WriteLog (System.Diagnostics.EventLogEntryType type, int eventId, string msgId, object arg1, object arg2);
static member WriteLog : System.Diagnostics.EventLogEntryType * int * string * obj * obj -> unit
Public Shared Sub WriteLog (type As EventLogEntryType, eventId As Integer, msgId As String, arg1 As Object, arg2 As Object)
参数
- type
- EventLogEntryType
- eventId
- Int32
- msgId
- String
- arg1
- Object
- arg2
- Object