WebManagementEventLog.Write 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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 도메인 또는 로컬 계정 이름입니다.
적용 대상
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 도메인 또는 로컬 계정 이름입니다.
- entryType
- EventLogEntryType
EventLogEntryType 값 중 하나입니다.
적용 대상
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기