UCOMIPersistFile UCOMIPersistFile UCOMIPersistFile UCOMIPersistFile Interface



此 API 现已过时。

请改用 IPersistFileUse IPersistFile instead.

public interface class UCOMIPersistFile
[System.Obsolete("Use System.Runtime.InteropServices.ComTypes.IPersistFile instead. http://go.microsoft.com/fwlink/?linkid=14202", false)]
public interface UCOMIPersistFile
type UCOMIPersistFile = interface
Public Interface UCOMIPersistFile


有关详细信息,请参阅的现有文档IPersistFileIPersistMSDN 库的 com 子文件夹中。For more information, please see the existing documentation for IPersistFile and IPersist in the com subfolder of the MSDN library.


GetClassID(Guid) GetClassID(Guid) GetClassID(Guid) GetClassID(Guid)

检索对象的类标识符 (CLSID)。Retrieves the class identifier (CLSID) of an object.

GetCurFile(String) GetCurFile(String) GetCurFile(String) GetCurFile(String)

检索该对象的当前工作文件的绝对路径,或者如果没有当前工作文件,则检索该对象的默认文件名提示。Retrieves either the absolute path to current working file of the object, or if there is no current working file, the default filename prompt of the object.

IsDirty() IsDirty() IsDirty() IsDirty()

检查对象自上次保存到其当前文件以来是否更改。Checks an object for changes since it was last saved to its current file.

Load(String, Int32) Load(String, Int32) Load(String, Int32) Load(String, Int32)

打开指定文件并从文件内容初始化对象。Opens the specified file and initializes an object from the file contents.

Save(String, Boolean) Save(String, Boolean) Save(String, Boolean) Save(String, Boolean)

将该对象的副本保存到指定文件。Saves a copy of the object into the specified file.

SaveCompleted(String) SaveCompleted(String) SaveCompleted(String) SaveCompleted(String)

通知该对象它可以写入它的文件。Notifies the object that it can write to its file.