UCOMIPersistFile Gränssnitt

Definition

Varning

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

Använd IPersistFile i stället.

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.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
Public Interface UCOMIPersistFile
Attribut

Kommentarer

Mer information finns i den befintliga dokumentationen för IPersistFile och IPersist i undermappen com i MSDN-biblioteket.

Metoder

Name Description
GetClassID(Guid)
Föråldrad.

Hämtar klassidentifieraren (CLSID) för ett objekt.

GetCurFile(String)
Föråldrad.

Hämtar antingen den absoluta sökvägen till objektets aktuella arbetsfil eller om det inte finns någon aktuell arbetsfil, standardfilnamnsprompten för objektet.

IsDirty()
Föråldrad.

Kontrollerar om ett objekt har ändrats eftersom det senast sparades i den aktuella filen.

Load(String, Int32)
Föråldrad.

Öppnar den angivna filen och initierar ett objekt från filinnehållet.

Save(String, Boolean)
Föråldrad.

Sparar en kopia av objektet i den angivna filen.

SaveCompleted(String)
Föråldrad.

Meddelar objektet som det kan skriva till sin fil.

Gäller för