IPersistFile Interfaz

Definición

Proporciona la definición administrada de la IPersistFile interfaz, con funcionalidad de 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
Atributos

Comentarios

Para obtener más información, consulte la documentación existente para IPersistFile y IPersist en MSDN Library.

Common Language Runtime produce una excepción cuando un método COM en código nativo devuelve un HRESULT. Para obtener más información, vea How to: Map HRESULTs and Exceptions.

Métodos

Nombre Description
GetClassID(Guid)

Recupera el identificador de clase (CLSID) de un objeto .

GetCurFile(String)

Recupera la ruta de acceso absoluta al archivo de trabajo actual del objeto o, si no hay ningún archivo de trabajo actual, el símbolo del nombre de archivo predeterminado del objeto.

IsDirty()

Comprueba si hay cambios en un objeto desde que se guardó por última vez en su archivo actual.

Load(String, Int32)

Abre el archivo especificado e inicializa un objeto a partir del contenido del archivo.

Save(String, Boolean)

Guarda una copia del objeto en el archivo especificado.

SaveCompleted(String)

Notifica al objeto que puede escribir en su archivo.

Se aplica a