UCOMIPersistFile Interface

Définition

Attention

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

Attention

Cette API est à présent déconseillée.

Utilisez plutôt 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
Attributs

Remarques

Pour plus d’informations, consultez la documentation existante pour IPersistFile et IPersist dans le sous-dossier com de MSDN Library.

Méthodes

GetClassID(Guid)

Récupère le CLSID (identificateur de classe).

GetCurFile(String)

Récupère le chemin d'accès absolu au fichier de travail actuel de l'objet, ou s'il n'y a actuellement pas de fichiers de travail, l'invite du nom de fichier par défaut de l'objet.

IsDirty()

Vérifie si l'objet a subi des modifications depuis son dernier enregistrement dans son fichier en cours.

Load(String, Int32)

Ouvre le fichier spécifié et initialise un objet à partir du contenu du fichier.

Save(String, Boolean)

Enregistre une copie de l'objet dans le fichier spécifié.

SaveCompleted(String)

Indique à l'objet qu'il peut écrire dans son fichier.

S’applique à