IPersistFile Interfaz

Definición

Proporciona la definición administrada de la interfaz IPersistFile, con funcionalidad desde 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, consulta How to: Map HRESULTs and Exceptions.

Métodos

GetClassID(Guid)

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

GetCurFile(String)

Recupera la ruta absoluta del archivo de trabajo actual del objeto o, si no existe ningún archivo de trabajo, la extensión del nombre de archivo predeterminado del objeto.

IsDirty()

Comprueba si un objeto se ha modificado desde la última vez que se guardó en el archivo actual.

Load(String, Int32)

Abre el archivo especificado e inicializa un objeto 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 el archivo.

Se aplica a