EventLogEntry.EventID 속성

정의

주의

This property has been deprecated. Please use System.Diagnostics.EventLogEntry.InstanceId instead. http://go.microsoft.com/fwlink/?linkid=14202

주의

This property has been deprecated. Please use System.Diagnostics.EventLogEntry.InstanceId instead. https://go.microsoft.com/fwlink/?linkid=14202

주의

EventLogEntry.EventID has been deprecated. Use System.Diagnostics.EventLogEntry.InstanceId instead.

현재 이벤트 엔트리의 애플리케이션별 이벤트 식별자를 가져옵니다.

public:
 property int EventID { int get(); };
[System.Obsolete("This property has been deprecated.  Please use System.Diagnostics.EventLogEntry.InstanceId instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
public int EventID { get; }
[System.Obsolete("This property has been deprecated.  Please use System.Diagnostics.EventLogEntry.InstanceId instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
public int EventID { get; }
[System.Obsolete("EventLogEntry.EventID has been deprecated. Use System.Diagnostics.EventLogEntry.InstanceId instead.")]
public int EventID { get; }
public int EventID { get; }
[<System.Obsolete("This property has been deprecated.  Please use System.Diagnostics.EventLogEntry.InstanceId instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.EventID : int
[<System.Obsolete("This property has been deprecated.  Please use System.Diagnostics.EventLogEntry.InstanceId instead.  https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.EventID : int
[<System.Obsolete("EventLogEntry.EventID has been deprecated. Use System.Diagnostics.EventLogEntry.InstanceId instead.")>]
member this.EventID : int
member this.EventID : int
Public ReadOnly Property EventID As Integer

속성 값

이벤트 메시지의 애플리케이션별 식별자입니다.

특성

설명

이 값은 이벤트 로그의 항목에 대한 이벤트 식별자를 나타내며 상위 두 비트는 마스킹 해제됩니다. 이벤트 로그 항목의 속성은 InstanceId 이벤트 원본에 대한 메시지 리소스 파일의 이벤트에 대한 전체 32비트 리소스 식별자를 나타냅니다. 동일한 원본의 두 이벤트 로그 항목은 일치하는 EventID 값을 가질 수 있지만 이벤트 식별자의 상위 두 비트 차이로 인해 값이 다릅니다 InstanceId .

애플리케이션 중 하나를 사용 하는 이벤트 항목을 작성 하는 경우는 WriteEntry 메서드를 EventID 속성이 선택적 일치 eventId 매개 변수입니다. 애플리케이션에서 또는 Windows API ReportEvent를 사용하여 WriteEvent 이벤트를 작성한 경우 속성은 EventID 상위 두 비트가 마스킹된 이벤트의 리소스 식별자와 일치합니다.

적용 대상

추가 정보