UriFormatException 클래스

정의

잘못된 URI(Uniform Resource Identifier)가 감지될 때 throw되는 예외입니다.

public ref class UriFormatException : FormatException
public class UriFormatException : FormatException
[System.Serializable]
public class UriFormatException : FormatException
type UriFormatException = class
    inherit FormatException
type UriFormatException = class
    inherit FormatException
    interface ISerializable
[<System.Serializable>]
type UriFormatException = class
    inherit FormatException
    interface ISerializable
Public Class UriFormatException
Inherits FormatException
상속
UriFormatException
상속
특성
구현

설명

UriFormatException 제공된 URI를 올바르게 구문 분석할 수 없는 경우 Uri 클래스 생성자가 throw합니다. 유효한 URI의 형식은 RFC 2396에 정의되어 있습니다.

속성의 Message 텍스트는 예외가 throw된 이유를 나타냅니다.

참고

이 예외에 포함 되지 않은 합니다 Windows 스토어 앱 용.NET 또는 이식 가능한 클래스 라이브러리, 하지만 일부의 멤버를에서 throw 됩니다. 이런 예외를 catch 하려면 작성을 catch 방침 FormatException 대신 합니다.

생성자

UriFormatException()

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

UriFormatException(SerializationInfo, StreamingContext)

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

UriFormatException(String)

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

UriFormatException(String, Exception)

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

속성

Data

예외에 대한 사용자 정의 정보를 추가로 제공하는 키/값 쌍 컬렉션을 가져옵니다.

(다음에서 상속됨 Exception)
HelpLink

이 예외와 연결된 도움말 파일에 대한 링크를 가져오거나 설정합니다.

(다음에서 상속됨 Exception)
HResult

특정 예외에 할당된 코드화된 숫자 값인 HRESULT를 가져오거나 설정합니다.

(다음에서 상속됨 Exception)
InnerException

현재 예외를 발생시킨 Exception 인스턴스를 가져옵니다.

(다음에서 상속됨 Exception)
Message

현재 예외를 설명하는 메시지를 가져옵니다.

(다음에서 상속됨 Exception)
Source

오류를 발생시키는 애플리케이션 또는 개체의 이름을 가져오거나 설정합니다.

(다음에서 상속됨 Exception)
StackTrace

호출 스택의 직접 실행 프레임 문자열 표현을 가져옵니다.

(다음에서 상속됨 Exception)
TargetSite

현재 예외를 throw하는 메서드를 가져옵니다.

(다음에서 상속됨 Exception)

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetBaseException()

파생 클래스에서 재정의된 경우 하나 이상의 후속 예외의 근본 원인이 되는 Exception 을 반환합니다.

(다음에서 상속됨 Exception)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetObjectData(SerializationInfo, StreamingContext)

파생 클래스에서 재정의된 경우 예외에 관한 정보를 SerializationInfo 에 설정합니다.

(다음에서 상속됨 Exception)
GetType()

현재 인스턴스의 런타임 형식을 가져옵니다.

(다음에서 상속됨 Exception)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 예외에 대한 문자열 표현을 만들고 반환합니다.

(다음에서 상속됨 Exception)

이벤트

SerializeObjectState
사용되지 않습니다.

예외에 대한 serialize된 데이터가 들어 있는 예외 상태 개체가 만들어지도록 예외가 serialize될 때 발생합니다.

(다음에서 상속됨 Exception)

명시적 인터페이스 구현

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

SerializationInfo을 serialize하는 데 필요한 데이터로 UriFormatException 인스턴스를 채웁니다.

적용 대상