FileFormatException 생성자

정의

FileFormatException 클래스의 새 인스턴스를 만듭니다.

오버로드

FileFormatException()

FileFormatException 클래스의 새 인스턴스를 만듭니다.

FileFormatException(String)

지정한 오류 메시지를 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

FileFormatException(Uri)

소스 URI 값을 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

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

FileFormatException 클래스의 새 인스턴스를 만들고 serialize된 데이터를 사용하여 초기화합니다. 이 생성자는 스트림을 통해 전송되는 예외 개체를 다시 구성하기 위해 역직렬화 중에 호출됩니다.

FileFormatException(String, Exception)

지정된 오류 메시지와 예외 형식을 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

FileFormatException(Uri, Exception)

소스 URI 값 및 예외 형식을 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

FileFormatException(Uri, String)

소스 URI 값 및 지정된 오류 메시지를 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

FileFormatException(Uri, String, Exception)

소스 URI 값, 지정된 오류 메시지 및 예외 형식을 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

FileFormatException()

Source:
FileFormatException.cs
Source:
FileFormatException.cs
Source:
FileFormatException.cs

FileFormatException 클래스의 새 인스턴스를 만듭니다.

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

설명

이 생성자는 오류를 설명하는 기본 시스템 메시지(예: "입력 파일 또는 데이터 스트림이 예상된 파일 형식 사양을 준수하지 않음)"를 사용합니다. 이 메시지는 현재 시스템 문화권을 고려합니다.

적용 대상

FileFormatException(String)

Source:
FileFormatException.cs
Source:
FileFormatException.cs
Source:
FileFormatException.cs

지정한 오류 메시지를 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

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

매개 변수

message
String

오류 메시지를 나타내는 String 값입니다.

적용 대상

FileFormatException(Uri)

Source:
FileFormatException.cs
Source:
FileFormatException.cs
Source:
FileFormatException.cs

소스 URI 값을 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

public:
 FileFormatException(Uri ^ sourceUri);
public FileFormatException (Uri sourceUri);
public FileFormatException (Uri? sourceUri);
new System.IO.FileFormatException : Uri -> System.IO.FileFormatException
Public Sub New (sourceUri As Uri)

매개 변수

sourceUri
Uri

이 오류를 일으킨 원인이 된 파일의 Uri 값입니다.

설명

이 생성자는 새 FileFormatException instance 속성을 오류를 설명하고 파일 이름(예: "파일 'sourceUri'이 예상된 파일 형식 사양을 준수하지 않음")을 포함하는 시스템 제공 메시지로 초기화 Message 합니다. 이 메시지는 현재 시스템 문화권을 고려합니다.

속성은 SourceUri 매개 변수를 사용하여 초기화됩니다 sourceUri .

적용 대상

FileFormatException(SerializationInfo, StreamingContext)

Source:
FileFormatException.cs
Source:
FileFormatException.cs
Source:
FileFormatException.cs

주의

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

FileFormatException 클래스의 새 인스턴스를 만들고 serialize된 데이터를 사용하여 초기화합니다. 이 생성자는 스트림을 통해 전송되는 예외 개체를 다시 구성하기 위해 역직렬화 중에 호출됩니다.

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

매개 변수

info
SerializationInfo

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

context
StreamingContext

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

특성

적용 대상

FileFormatException(String, Exception)

Source:
FileFormatException.cs
Source:
FileFormatException.cs
Source:
FileFormatException.cs

지정된 오류 메시지와 예외 형식을 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

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

매개 변수

message
String

오류 메시지를 나타내는 String 값입니다.

innerException
Exception

현재 예외의 원인을 나타내는 InnerException 속성의 값입니다.

설명

이 생성자는 로 표시되는 지정된 오류 메시지를 사용하여 새 FileFormatException instance 속성을 초기화 Message 합니다message.

적용 대상

FileFormatException(Uri, Exception)

Source:
FileFormatException.cs
Source:
FileFormatException.cs
Source:
FileFormatException.cs

소스 URI 값 및 예외 형식을 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

public:
 FileFormatException(Uri ^ sourceUri, Exception ^ innerException);
public FileFormatException (Uri sourceUri, Exception innerException);
public FileFormatException (Uri? sourceUri, Exception? innerException);
new System.IO.FileFormatException : Uri * Exception -> System.IO.FileFormatException
Public Sub New (sourceUri As Uri, innerException As Exception)

매개 변수

sourceUri
Uri

이 오류를 일으킨 원인이 된 파일의 Uri 값입니다.

innerException
Exception

현재 예외의 원인을 나타내는 InnerException 속성의 값입니다.

설명

이 생성자는 새 instance Message 속성을 오류를 설명하고 파일 이름(예: "파일 'sourceUri'이 예상된 파일 형식 사양을 준수하지 않음")을 포함하는 시스템 제공 메시지로 초기화합니다. 이 메시지는 현재 시스템 문화권을 고려합니다.

속성은 SourceUri 매개 변수를 사용하여 초기화됩니다 sourceUri .

적용 대상

FileFormatException(Uri, String)

Source:
FileFormatException.cs
Source:
FileFormatException.cs
Source:
FileFormatException.cs

소스 URI 값 및 지정된 오류 메시지를 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

public:
 FileFormatException(Uri ^ sourceUri, System::String ^ message);
public FileFormatException (Uri sourceUri, string message);
public FileFormatException (Uri? sourceUri, string? message);
new System.IO.FileFormatException : Uri * string -> System.IO.FileFormatException
Public Sub New (sourceUri As Uri, message As String)

매개 변수

sourceUri
Uri

이 오류를 일으킨 원인이 된 파일의 Uri 값입니다.

message
String

오류 메시지를 나타내는 String 값입니다.

설명

이 생성자는 로 표시되는 지정된 오류 메시지를 사용하여 새 FileFormatException instance 속성을 초기화 Message 합니다message. 현재 시스템 culture에 대해 이 문자열이 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

속성은 SourceUri 매개 변수를 사용하여 초기화됩니다 sourceUri .

적용 대상

FileFormatException(Uri, String, Exception)

Source:
FileFormatException.cs
Source:
FileFormatException.cs
Source:
FileFormatException.cs

소스 URI 값, 지정된 오류 메시지 및 예외 형식을 사용하여 FileFormatException 클래스의 새 인스턴스를 만듭니다.

public:
 FileFormatException(Uri ^ sourceUri, System::String ^ message, Exception ^ innerException);
public FileFormatException (Uri sourceUri, string message, Exception innerException);
public FileFormatException (Uri? sourceUri, string? message, Exception? innerException);
new System.IO.FileFormatException : Uri * string * Exception -> System.IO.FileFormatException
Public Sub New (sourceUri As Uri, message As String, innerException As Exception)

매개 변수

sourceUri
Uri

이 오류를 일으킨 원인이 된 파일의 Uri 값입니다.

message
String

오류 메시지를 나타내는 String 값입니다.

innerException
Exception

현재 예외의 원인을 나타내는 InnerException 속성의 값입니다.

설명

이 생성자는 메시지 매개 변수를 사용하여 새 instance Message 속성을 초기화합니다. 현재 시스템 culture에 대해 이 문자열이 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

속성은 SourceUri 매개 변수를 사용하여 초기화됩니다 sourceUri .

적용 대상