IPersistFile 인터페이스

정의

IPersistFile의 기능이 있는 IPersist 인터페이스의 관리되는 정의를 제공합니다.

public interface class IPersistFile
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IPersistFile
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("0000010b-0000-0000-C000-000000000046")]
public interface IPersistFile
public interface IPersistFile
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IPersistFile = interface
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.Guid("0000010b-0000-0000-C000-000000000046")>]
type IPersistFile = interface
type IPersistFile = interface
Public Interface IPersistFile
특성

설명

자세한 내용은 MSDN 라이브러리에 대한 IPersistFile IPersist 기존 설명서를 참조하세요.

네이티브 코드에서 COM 메서드는 HRESULT를 반환 하는 경우에 공용 언어 런타임 예외가 발생 합니다. 자세한 내용은 How to: Map HRESULTs and Exceptions을 참조하세요.

메서드

GetClassID(Guid)

개체의 CLSID(클래스 식별자)를 검색합니다.

GetCurFile(String)

개체의 현재 작업 파일의 절대 경로를 검색하거나 현재 작업 파일이 없는 경우에는 개체의 기본 파일 이름 프롬프트를 검색합니다.

IsDirty()

현재 파일에 마지막으로 저장된 이후 개체의 변경 사항을 검사합니다.

Load(String, Int32)

지정된 파일을 열고 파일 내용에서 개체를 초기화합니다.

Save(String, Boolean)

지정된 파일에 개체의 복사본을 저장합니다.

SaveCompleted(String)

개체가 해당 파일에 쓸 수 있다는 것을 개체에 알립니다.

적용 대상