Share via


EventSourceException 생성자

정의

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

오버로드

EventSourceException()

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

EventSourceException(String)

지정된 오류 메시지를 사용하여 EventSourceException 클래스의 새 인스턴스를 초기화합니다.

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

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

EventSourceException(String, Exception)

지정된 오류 메시지와 해당 예외의 원인인 내부 예외에 대한 참조를 사용하여 EventSourceException 클래스의 새 인스턴스를 초기화합니다.

EventSourceException()

Source:
EventSourceException.cs
Source:
EventSourceException.cs
Source:
EventSourceException.cs

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

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

적용 대상

EventSourceException(String)

Source:
EventSourceException.cs
Source:
EventSourceException.cs
Source:
EventSourceException.cs

지정된 오류 메시지를 사용하여 EventSourceException 클래스의 새 인스턴스를 초기화합니다.

public:
 EventSourceException(System::String ^ message);
public EventSourceException (string message);
public EventSourceException (string? message);
new System.Diagnostics.Tracing.EventSourceException : string -> System.Diagnostics.Tracing.EventSourceException
Public Sub New (message As String)

매개 변수

message
String

오류를 설명하는 메시지입니다.

적용 대상

EventSourceException(SerializationInfo, StreamingContext)

Source:
EventSourceException.cs
Source:
EventSourceException.cs
Source:
EventSourceException.cs

주의

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

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

protected:
 EventSourceException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected EventSourceException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[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 EventSourceException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Diagnostics.Tracing.EventSourceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Tracing.EventSourceException
[<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.Tracing.EventSourceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Tracing.EventSourceException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

매개 변수

info
SerializationInfo

serialize된 개체 데이터를 보유하는 개체입니다.

context
StreamingContext

원본 또는 대상에 대한 컨텍스트 정보입니다.

특성

적용 대상

EventSourceException(String, Exception)

Source:
EventSourceException.cs
Source:
EventSourceException.cs
Source:
EventSourceException.cs

지정된 오류 메시지와 해당 예외의 원인인 내부 예외에 대한 참조를 사용하여 EventSourceException 클래스의 새 인스턴스를 초기화합니다.

public:
 EventSourceException(System::String ^ message, Exception ^ innerException);
public EventSourceException (string message, Exception innerException);
public EventSourceException (string? message, Exception? innerException);
new System.Diagnostics.Tracing.EventSourceException : string * Exception -> System.Diagnostics.Tracing.EventSourceException
Public Sub New (message As String, innerException As Exception)

매개 변수

message
String

예외에 대한 이유를 설명하는 오류 메시지입니다.

innerException
Exception

현재 예외의 원인이 되는 예외이거나, 내부 예외를 지정하지 않았으면 null입니다.

설명

이전 예외의 직접적인 결과로 throw되는 예외의 InnerException 속성에는 이전 예외에 대한 참조가 들어 있어야 합니다. InnerException 속성은 생성자로 전달되는 값과 같은 값을 반환하거나, InnerException 속성이 생성자에 내부 예외 값을 제공하지 않는 경우 null을 반환합니다.

적용 대상