EventLogException 생성자

정의

EventLogException 클래스의 새 인스턴스를 초기화합니다.

오버로드

EventLogException()

EventLogException 클래스의 새 인스턴스를 초기화합니다.

EventLogException(Int32)

예외에 대한 오류 코드를 사용하여 EventLogException 클래스의 새 인스턴스를 초기화합니다.

EventLogException(String)

현재 예외를 설명하는 오류 메시지를 지정하여 EventLogException 클래스의 새 인스턴스를 초기화합니다.

EventLogException(SerializationInfo, StreamingContext)
사용되지 않음.

serialize된 데이터를 사용하여 EventLogException 클래스의 새 인스턴스를 초기화합니다.

EventLogException(String, Exception)

오류 및 내부 예외를 사용하여 EventLogException 클래스의 새 인스턴스를 초기화합니다.

EventLogException()

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

EventLogException 클래스의 새 인스턴스를 초기화합니다.

public:
 EventLogException();
public EventLogException ();
Public Sub New ()

적용 대상

EventLogException(Int32)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

예외에 대한 오류 코드를 사용하여 EventLogException 클래스의 새 인스턴스를 초기화합니다.

protected:
 EventLogException(int errorCode);
protected EventLogException (int errorCode);
new System.Diagnostics.Eventing.Reader.EventLogException : int -> System.Diagnostics.Eventing.Reader.EventLogException
Protected Sub New (errorCode As Integer)

매개 변수

errorCode
Int32

이벤트 로그 관련 정보를 읽거나 구성할 때 발생한 오류의 오류 코드입니다.

적용 대상

EventLogException(String)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

현재 예외를 설명하는 오류 메시지를 지정하여 EventLogException 클래스의 새 인스턴스를 초기화합니다.

public:
 EventLogException(System::String ^ message);
public EventLogException (string message);
new System.Diagnostics.Eventing.Reader.EventLogException : string -> System.Diagnostics.Eventing.Reader.EventLogException
Public Sub New (message As String)

매개 변수

message
String

현재 예외를 설명하는 오류 메시지입니다.

적용 대상

EventLogException(SerializationInfo, StreamingContext)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

주의

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

serialize된 데이터를 사용하여 EventLogException 클래스의 새 인스턴스를 초기화합니다.

protected:
 EventLogException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected EventLogException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected EventLogException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Diagnostics.Eventing.Reader.EventLogException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Diagnostics.Eventing.Reader.EventLogException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

매개 변수

serializationInfo
SerializationInfo

발생되는 예외에 대해 직렬화된 개체 데이터를 보유하는 SerializationInfo 개체입니다.

streamingContext
StreamingContext

원본 또는 대상에 대한 컨텍스트 정보를 포함하는 StreamingContext 개체입니다.

특성

적용 대상

EventLogException(String, Exception)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

오류 및 내부 예외를 사용하여 EventLogException 클래스의 새 인스턴스를 초기화합니다.

public:
 EventLogException(System::String ^ message, Exception ^ innerException);
public EventLogException (string message, Exception innerException);
new System.Diagnostics.Eventing.Reader.EventLogException : string * Exception -> System.Diagnostics.Eventing.Reader.EventLogException
Public Sub New (message As String, innerException As Exception)

매개 변수

message
String

현재 예외를 설명하는 오류 메시지입니다.

innerException
Exception

현재 예외를 발생시킨 예외 인스턴스입니다.

적용 대상