FileNotFoundException 클래스
정의
디스크에 없는 파일에 대한 액세스 시도가 실패한 경우에 throw되는 예외입니다.The exception that is thrown when an attempt to access a file that does not exist on disk fails.
public ref class FileNotFoundException : System::IO::IOException
public class FileNotFoundException : System.IO.IOException
[System.Serializable]
public class FileNotFoundException : System.IO.IOException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class FileNotFoundException : System.IO.IOException
type FileNotFoundException = class
inherit IOException
[<System.Serializable>]
type FileNotFoundException = class
inherit IOException
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type FileNotFoundException = class
inherit IOException
Public Class FileNotFoundException
Inherits IOException
- 상속
- 상속
- 특성
설명
FileNotFoundException
0x80070002 값이 포함 된 HRESULT COR_E_FILENOTFOUND를 사용 합니다.FileNotFoundException
uses the HRESULT COR_E_FILENOTFOUND which has the value 0x80070002.
코드에 권한이 없는 경우 PathDiscovery 이 예외에 대 한 오류 메시지는 정규화 된 경로 대신 파일 또는 디렉터리 이름만 포함할 수 있습니다.If your code does not have PathDiscovery permission, the error message for this exception may only contain file or directory names instead of fully qualified paths.
생성자
FileNotFoundException() |
시스템 제공 메시지로 설정된 메시지 문자열을 사용하여 FileNotFoundException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the FileNotFoundException class with its message string set to a system-supplied message. |
FileNotFoundException(SerializationInfo, StreamingContext) |
지정한 직렬화 및 컨텍스트 정보를 사용하여 FileNotFoundException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the FileNotFoundException class with the specified serialization and context information. |
FileNotFoundException(String) |
지정된 오류 메시지를 사용하여 FileNotFoundException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the FileNotFoundException class with a specified error message. |
FileNotFoundException(String, Exception) |
지정된 오류 메시지와 해당 예외의 원인인 내부 예외에 대한 참조를 사용하여 FileNotFoundException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the FileNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
FileNotFoundException(String, String) |
지정된 오류 메시지와 찾을 수 없는 파일 이름을 사용하여 FileNotFoundException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the FileNotFoundException class with a specified error message, and the file name that cannot be found. |
FileNotFoundException(String, String, Exception) |
지정된 오류 메시지, 찾을 수 없는 파일 이름 및 이 예외의 원인이 되는 내부 예외에 대한 참조를 사용하여 FileNotFoundException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the FileNotFoundException class with a specified error message, the file name that cannot be found, and a reference to the inner exception that is the cause of this exception. |
속성
Data |
예외에 대한 사용자 정의 정보를 추가로 제공하는 키/값 쌍 컬렉션을 가져옵니다.Gets a collection of key/value pairs that provide additional user-defined information about the exception. (다음에서 상속됨 Exception) |
FileName |
찾을 수 없는 파일의 이름을 가져옵니다.Gets the name of the file that cannot be found. |
FusionLog |
어셈블리를 로드하지 못한 이유를 설명하는 로그 파일을 가져옵니다.Gets the log file that describes why loading of an assembly failed. |
HelpLink |
이 예외와 연결된 도움말 파일에 대한 링크를 가져오거나 설정합니다.Gets or sets a link to the help file associated with this exception. (다음에서 상속됨 Exception) |
HResult |
특정 예외에 할당된 코드화된 숫자 값인 HRESULT를 가져오거나 설정합니다.Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (다음에서 상속됨 Exception) |
InnerException |
현재 예외를 발생시킨 Exception 인스턴스를 가져옵니다.Gets the Exception instance that caused the current exception. (다음에서 상속됨 Exception) |
Message |
예외에 대한 이유를 설명하는 오류 메시지를 가져옵니다.Gets the error message that explains the reason for the exception. |
Source |
오류를 발생시키는 애플리케이션 또는 개체의 이름을 가져오거나 설정합니다.Gets or sets the name of the application or the object that causes the error. (다음에서 상속됨 Exception) |
StackTrace |
호출 스택의 직접 실행 프레임 문자열 표현을 가져옵니다.Gets a string representation of the immediate frames on the call stack. (다음에서 상속됨 Exception) |
TargetSite |
현재 예외를 throw하는 메서드를 가져옵니다.Gets the method that throws the current exception. (다음에서 상속됨 Exception) |
메서드
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다.Determines whether the specified object is equal to the current object. (다음에서 상속됨 Object) |
GetBaseException() |
파생 클래스에서 재정의된 경우 하나 이상의 후속 예외의 근본 원인이 되는 Exception 을 반환합니다.When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (다음에서 상속됨 Exception) |
GetHashCode() |
기본 해시 함수로 작동합니다.Serves as the default hash function. (다음에서 상속됨 Object) |
GetObjectData(SerializationInfo, StreamingContext) |
파일 이름 및 추가 예외 정보를 사용하여 SerializationInfo 개체를 설정합니다.Sets the SerializationInfo object with the file name and additional exception information. |
GetObjectData(SerializationInfo, StreamingContext) |
파생 클래스에서 재정의된 경우 예외에 관한 정보를 SerializationInfo 에 설정합니다.When overridden in a derived class, sets the SerializationInfo with information about the exception. (다음에서 상속됨 Exception) |
GetType() |
현재 인스턴스의 런타임 형식을 가져옵니다.Gets the runtime type of the current instance. (다음에서 상속됨 Exception) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
ToString() |
이 예외의 정규화된 이름과 오류 메시지, 내부 예외 이름 및 스택 추적을 반환합니다.Returns the fully qualified name of this exception and possibly the error message, the name of the inner exception, and the stack trace. |
이벤트
SerializeObjectState |
예외에 대한 serialize된 데이터가 들어 있는 예외 상태 개체가 만들어지도록 예외가 serialize될 때 발생합니다.Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (다음에서 상속됨 Exception) |