Share via


WebManagementEventLog.Write 메서드

정의

Windows 이벤트 로그에 이벤트 관련 정보를 씁니다.

오버로드

Write(Int32, String)

Windows 이벤트 로그에 이벤트 ID 및 메시지를 씁니다.

Write(String, EventLogEntryType, Int32)

이벤트 로그 메시지, 항목 유형 및 이벤트 ID를 Windows 이벤트 로그에 씁니다.

Write(Int32, String, String, String, Exception)

이벤트 ID, 오류 메시지, 연결 이름, 연결 사용자 및 예외를 Windows 이벤트 로그에 씁니다.

Write(Int32, String, String, String, Exception, EventLogEntryType)

이벤트 ID, 오류 메시지, 연결 이름, 연결 사용자, 예외 및 이벤트 로그 항목 유형을 Windows 이벤트 로그에 씁니다.

Write(Int32, String)

Windows 이벤트 로그에 이벤트 ID 및 메시지를 씁니다.

public:
 static void Write(int eventId, System::String ^ message);
public static void Write (int eventId, string message);
static member Write : int * string -> unit
Public Shared Sub Write (eventId As Integer, message As String)

매개 변수

eventId
Int32

이벤트 ID입니다.

message
String

이벤트 로그에 쓸 메시지입니다.

적용 대상

Write(String, EventLogEntryType, Int32)

이벤트 로그 메시지, 항목 유형 및 이벤트 ID를 Windows 이벤트 로그에 씁니다.

public:
 static void Write(System::String ^ message, System::Diagnostics::EventLogEntryType entryType, int eventId);
public static void Write (string message, System.Diagnostics.EventLogEntryType entryType, int eventId);
static member Write : string * System.Diagnostics.EventLogEntryType * int -> unit
Public Shared Sub Write (message As String, entryType As EventLogEntryType, eventId As Integer)

매개 변수

message
String

이벤트 로그에 쓸 메시지입니다.

entryType
EventLogEntryType

EventLogEntryType 값 중 하나입니다.

eventId
Int32

이벤트 ID입니다.

적용 대상

Write(Int32, String, String, String, Exception)

이벤트 ID, 오류 메시지, 연결 이름, 연결 사용자 및 예외를 Windows 이벤트 로그에 씁니다.

public:
 static void Write(int eventId, System::String ^ message, System::String ^ connectionName, System::String ^ connectionUser, Exception ^ exception);
public static void Write (int eventId, string message, string connectionName, string connectionUser, Exception exception);
static member Write : int * string * string * string * Exception -> unit

매개 변수

eventId
Int32

이벤트 ID입니다.

message
String

이벤트 로그에 쓸 메시지입니다.

connectionName
String

현재 연결의 이름입니다.

connectionUser
String

연결에서 자격 증명을 사용하는 사용자의 Windows 도메인 또는 로컬 계정 이름입니다.

exception
Exception

Exception 연결 중에 발생한 오류가 포함된 입니다.

적용 대상

Write(Int32, String, String, String, Exception, EventLogEntryType)

이벤트 ID, 오류 메시지, 연결 이름, 연결 사용자, 예외 및 이벤트 로그 항목 유형을 Windows 이벤트 로그에 씁니다.

public:
 static void Write(int eventId, System::String ^ message, System::String ^ connectionName, System::String ^ connectionUser, Exception ^ exception, System::Diagnostics::EventLogEntryType entryType);
public static void Write (int eventId, string message, string connectionName, string connectionUser, Exception exception, System.Diagnostics.EventLogEntryType entryType);
static member Write : int * string * string * string * Exception * System.Diagnostics.EventLogEntryType -> unit

매개 변수

eventId
Int32

이벤트 ID입니다.

message
String

이벤트 로그에 쓸 메시지입니다.

connectionName
String

현재 연결의 이름입니다.

connectionUser
String

연결에서 자격 증명을 사용하는 사용자의 Windows 도메인 또는 로컬 계정 이름입니다.

exception
Exception

Exception 연결 중에 발생한 오류가 포함된 입니다.

entryType
EventLogEntryType

EventLogEntryType 값 중 하나입니다.

적용 대상