UriFormatException 생성자

정의

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

오버로드

UriFormatException()

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

UriFormatException(String)

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

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

지정된 UriFormatExceptionSerializationInfo 인스턴스에서 StreamingContext 클래스의 새 인스턴스를 초기화합니다.

UriFormatException(String, Exception)

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

UriFormatException()

Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs

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

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

설명

매개 변수가 없는 생성자는 모든 필드가 로 설정된 클래스의 UriFormatException 새 instance 초기화합니다null.

적용 대상

UriFormatException(String)

Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs

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

public:
 UriFormatException(System::String ^ textString);
public UriFormatException (string textString);
public UriFormatException (string? textString);
new UriFormatException : string -> UriFormatException
Public Sub New (textString As String)

매개 변수

textString
String

오류 메시지 문자열입니다.

설명

UriFormatException 생성자는 속성이 UriFormatExceptiontextString으로 Message 설정된 instance 초기화합니다.

적용 대상

UriFormatException(SerializationInfo, StreamingContext)

Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs

주의

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

지정된 UriFormatExceptionSerializationInfo 인스턴스에서 StreamingContext 클래스의 새 인스턴스를 초기화합니다.

protected:
 UriFormatException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected UriFormatException (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 UriFormatException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new UriFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> UriFormatException
[<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 UriFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> UriFormatException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

매개 변수

serializationInfo
SerializationInfo

SerializationInfo을 serialize하는 데 필요한 정보가 들어 있는 UriFormatException입니다.

streamingContext
StreamingContext

UriFormatException과 관련된 직렬화된 스트림의 원본이 들어 있는 StreamingContext입니다.

특성

설명

이 생성자는 클래스에 ISerializable 대한 인터페이스를 구현합니다 UriFormatException .

추가 정보

적용 대상

UriFormatException(String, Exception)

Source:
UriFormatException.cs
Source:
UriFormatException.cs
Source:
UriFormatException.cs

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

public:
 UriFormatException(System::String ^ textString, Exception ^ e);
public UriFormatException (string textString, Exception e);
public UriFormatException (string? textString, Exception? e);
new UriFormatException : string * Exception -> UriFormatException
Public Sub New (textString As String, e As Exception)

매개 변수

textString
String

예외를 설명하는 메시지입니다. 현재 시스템 culture에 대해 이 문자열이 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

e
Exception

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

설명

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

다음 표에는 UriFormatException의 인스턴스의 초기 속성 값이 나와 있습니다.

속성
InnerException null.
Message message에 지정된 오류 메시지 문자열입니다.

추가 정보

적용 대상