다음을 통해 공유


CustomAttributeFormatException 생성자

정의

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

오버로드

Name Description
CustomAttributeFormatException()

기본 속성을 사용하여 클래스의 CustomAttributeFormatException 새 인스턴스를 초기화합니다.

CustomAttributeFormatException(String)

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

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

지정된 serialization 및 컨텍스트 정보를 사용하여 클래스의 CustomAttributeFormatException 새 인스턴스를 초기화합니다.

CustomAttributeFormatException(String, Exception)

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

CustomAttributeFormatException()

Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs

기본 속성을 사용하여 클래스의 CustomAttributeFormatException 새 인스턴스를 초기화합니다.

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

설명

이 생성자는 빈 메시지 문자열과 근본 원인 예외가 설정된 인스턴스 CustomAttributeFormatException 를 초기화합니다 null.

이 생성자는 다음과 같이 개체의 Exception 속성을 설정합니다.

재산 가치
InnerException 없음
Message 빈 문자열("")입니다.

적용 대상

CustomAttributeFormatException(String)

Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs

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

public:
 CustomAttributeFormatException(System::String ^ message);
public CustomAttributeFormatException(string? message);
public CustomAttributeFormatException(string message);
new System.Reflection.CustomAttributeFormatException : string -> System.Reflection.CustomAttributeFormatException
Public Sub New (message As String)

매개 변수

message
String

이 예외가 throw된 이유를 나타내는 메시지입니다.

설명

이 생성자는 다음과 같이 Exception 개체의 속성을 설정합니다.

재산 가치
InnerException null

추가 정보

적용 대상

CustomAttributeFormatException(SerializationInfo, StreamingContext)

Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs

주의

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

지정된 serialization 및 컨텍스트 정보를 사용하여 클래스의 CustomAttributeFormatException 새 인스턴스를 초기화합니다.

protected:
 CustomAttributeFormatException(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 CustomAttributeFormatException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected CustomAttributeFormatException(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}")>]
new System.Reflection.CustomAttributeFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Reflection.CustomAttributeFormatException
new System.Reflection.CustomAttributeFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Reflection.CustomAttributeFormatException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

매개 변수

info
SerializationInfo

사용자 지정 특성을 직렬화하거나 역직렬화하기 위한 데이터입니다.

context
StreamingContext

사용자 지정 특성의 원본 및 대상입니다.

특성

적용 대상

CustomAttributeFormatException(String, Exception)

Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs
Source:
CustomAttributeFormatException.cs

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

public:
 CustomAttributeFormatException(System::String ^ message, Exception ^ inner);
public CustomAttributeFormatException(string? message, Exception? inner);
public CustomAttributeFormatException(string message, Exception inner);
new System.Reflection.CustomAttributeFormatException : string * Exception -> System.Reflection.CustomAttributeFormatException
Public Sub New (message As String, inner As Exception)

매개 변수

message
String

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

inner
Exception

현재 예외의 원인인 예외입니다. 매개 변수가 inner 아닌 null경우 내부 예외를 catch 처리하는 블록에서 현재 예외가 발생합니다.

설명

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

다음 표에서는 인스턴스 CustomAttributeFormatException에 대한 초기 속성 값을 보여 줍니다.

재산 가치
InnerException 예외입니다 inner .
Message 오류 메시지 문자열입니다.

추가 정보

적용 대상