UCOMIPersistFile 接口

定义

注意

Use System.Runtime.InteropServices.ComTypes.IPersistFile instead. http://go.microsoft.com/fwlink/?linkid=14202

注意

现已弃用此 API。

请改用 IPersistFile

public interface class UCOMIPersistFile
[System.Runtime.InteropServices.Guid("0000010b-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface UCOMIPersistFile
[System.Runtime.InteropServices.Guid("0000010b-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Obsolete("Use System.Runtime.InteropServices.ComTypes.IPersistFile instead. http://go.microsoft.com/fwlink/?linkid=14202", false)]
public interface UCOMIPersistFile
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Obsolete]
[System.Runtime.InteropServices.Guid("0000010b-0000-0000-c000-000000000046")]
public interface UCOMIPersistFile
[<System.Runtime.InteropServices.Guid("0000010b-0000-0000-C000-000000000046")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type UCOMIPersistFile = interface
[<System.Runtime.InteropServices.Guid("0000010b-0000-0000-C000-000000000046")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Obsolete("Use System.Runtime.InteropServices.ComTypes.IPersistFile instead. http://go.microsoft.com/fwlink/?linkid=14202", false)>]
type UCOMIPersistFile = interface
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Obsolete>]
[<System.Runtime.InteropServices.Guid("0000010b-0000-0000-c000-000000000046")>]
type UCOMIPersistFile = interface
Public Interface UCOMIPersistFile
属性

注解

有关详细信息,请参阅 IPersistFile IPersist MSDN library 的 com 子文件夹中的和的现有文档。

方法

GetClassID(Guid)

检索对象的类标识符 (CLSID)。

GetCurFile(String)

检索该对象的当前工作文件的绝对路径,或者如果没有当前工作文件,则检索该对象的默认文件名提示。

IsDirty()

检查对象自上次保存到其当前文件以来是否更改。

Load(String, Int32)

打开指定文件并从文件内容初始化对象。

Save(String, Boolean)

将该对象的副本保存到指定文件。

SaveCompleted(String)

通知该对象它可以写入它的文件。

适用于