FileLoadException 생성자

정의

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

오버로드

FileLoadException()

클래스의 FileLoadException 새 instance 초기화하여 새 instance 속성을 "지정된 파일을 로드할 수 없습니다."와 같이 오류를 설명하는 시스템 제공 메시지로 설정합니다Message. 이 메시지는 현재 시스템 문화권을 고려합니다.

FileLoadException(String)

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

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

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

FileLoadException(String, Exception)

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

FileLoadException(String, String)

지정된 오류 메시지와 로드할 수 없는 파일의 이름을 사용하여 FileLoadException 클래스의 새 인스턴스를 초기화합니다.

FileLoadException(String, String, Exception)

지정된 오류 메시지, 로드할 수 없는 파일의 이름 및 해당 예외의 원인이 되는 내부 예외에 대한 참조를 사용하여 FileLoadException 클래스의 새 인스턴스를 초기화합니다.

FileLoadException()

Source:
FileLoadException.cs
Source:
FileLoadException.cs
Source:
FileLoadException.cs

클래스의 FileLoadException 새 instance 초기화하여 새 instance 속성을 "지정된 파일을 로드할 수 없습니다."와 같이 오류를 설명하는 시스템 제공 메시지로 설정합니다Message. 이 메시지는 현재 시스템 문화권을 고려합니다.

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

설명

InnerException 새 instance 속성 및 FileName 속성이 로 초기화null됩니다.

추가 정보

적용 대상

FileLoadException(String)

Source:
FileLoadException.cs
Source:
FileLoadException.cs
Source:
FileLoadException.cs

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

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

매개 변수

message
String

오류를 설명하는 String입니다. message 내용은 사용자의 이해를 돕기 위한 것입니다. 현재 시스템 culture에 대해 이 문자열이 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

설명

이 생성자는 를 사용하여 message새 instance 속성을 초기화합니다Message. InnerException 새 instance 속성 및 FileName 속성이 로 초기화null됩니다.

추가 정보

적용 대상

FileLoadException(SerializationInfo, StreamingContext)

Source:
FileLoadException.cs
Source:
FileLoadException.cs
Source:
FileLoadException.cs

주의

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

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

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

매개 변수

info
SerializationInfo

throw되는 예외에 대해 serialize된 개체 데이터를 보유하는 SerializationInfo입니다.

context
StreamingContext

소스 또는 대상에 대한 컨텍스트 정보를 포함하는 StreamingContext입니다.

특성

추가 정보

적용 대상

FileLoadException(String, Exception)

Source:
FileLoadException.cs
Source:
FileLoadException.cs
Source:
FileLoadException.cs

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

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

매개 변수

message
String

오류를 설명하는 String입니다. message 내용은 사용자의 이해를 돕기 위한 것입니다. 현재 시스템 culture에 대해 이 문자열이 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

inner
Exception

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

설명

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

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

속성
InnerException 내부 예외 참조
Message 오류 메시지 문자열입니다.

내부 예외에 대한 자세한 내용은 를 참조하세요 InnerException.

추가 정보

적용 대상

FileLoadException(String, String)

Source:
FileLoadException.cs
Source:
FileLoadException.cs
Source:
FileLoadException.cs

지정된 오류 메시지와 로드할 수 없는 파일의 이름을 사용하여 FileLoadException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

오류를 설명하는 String입니다. message 내용은 사용자의 이해를 돕기 위한 것입니다. 현재 시스템 culture에 대해 이 문자열이 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

fileName
String

로드되지 않은 파일의 이름을 포함하는 String입니다.

설명

이 생성자는 를 사용하여 message 새 instance 속성과 을 FileName 사용하여 fileName속성을 초기화 Message 합니다. InnerException 새 instance 속성이 로 초기화됩니다null.

FileName 는 디스크에 저장된 파일일 필요가 없습니다. 스트림에 대한 액세스를 지원하는 시스템의 일부일 수 있습니다. 예를 들어 체제에 따라이 클래스는 물리적 디바이스에 액세스 할 수 있습니다.

추가 정보

적용 대상

FileLoadException(String, String, Exception)

Source:
FileLoadException.cs
Source:
FileLoadException.cs
Source:
FileLoadException.cs

지정된 오류 메시지, 로드할 수 없는 파일의 이름 및 해당 예외의 원인이 되는 내부 예외에 대한 참조를 사용하여 FileLoadException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

오류를 설명하는 String입니다. message 내용은 사용자의 이해를 돕기 위한 것입니다. 현재 시스템 culture에 대해 이 문자열이 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

fileName
String

로드되지 않은 파일의 이름을 포함하는 String입니다.

inner
Exception

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

설명

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

FileName 는 디스크에 저장된 파일일 필요가 없습니다. 스트림에 대한 액세스를 지원하는 시스템의 일부일 수 있습니다. 예를 들어 체제에 따라이 클래스는 물리적 디바이스에 액세스 할 수 있습니다.

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

속성
InnerException 내부 예외 참조
Message 오류 메시지 문자열입니다.

내부 예외에 대한 자세한 내용은 를 참조하세요 InnerException.

추가 정보

적용 대상