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 ライブラリの および IPersistIPersistFile既存のドキュメントを参照してください。

共通言語ランタイムは、ネイティブ コードの COM メソッドが HRESULT を返すときに例外をスローします。 詳細については、「 How to: Map HRESULTs and Exceptions」を参照してください。

メソッド

GetClassID(Guid)

オブジェクトのクラス ID (CLSID: Class Identifier) を取得します。

GetCurFile(String)

オブジェクトの現在の作業ファイルへの絶対パスを取得します。現在の作業ファイルがない場合は、オブジェクトの既定のファイル名プロンプトを取得します。

IsDirty()

現在のファイルを最後に保存した時点からオブジェクトが変更されたかどうかを確認します。

Load(String, Int32)

指定したファイルを開き、ファイルに含まれているオブジェクトを初期化します。

Save(String, Boolean)

指定したファイルにオブジェクトのコピーを保存します。

SaveCompleted(String)

ファイルに書き込むことができることをオブジェクトに通知します。

適用対象