UCOMIPersistFile Interfejs

Definicja

Przestroga

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

Przestroga

Ten interfejs API jest już przestarzały.

Zamiast tego użyj polecenia cmdlet 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
Atrybuty

Uwagi

Aby uzyskać więcej informacji, zapoznaj się z istniejącą dokumentacją dla IPersistFile i IPersist w podfolderze com biblioteki MSDN.

Metody

GetClassID(Guid)

Pobiera identyfikator klasy (CLSID) obiektu.

GetCurFile(String)

Pobiera ścieżkę bezwzględną do bieżącego pliku roboczego obiektu lub jeśli nie ma bieżącego pliku roboczego, zostanie wyświetlony monit o podanie domyślnej nazwy pliku dla obiektu.

IsDirty()

Sprawdza obiekt pod kątem zmian od momentu ostatniego zapisania go w bieżącym pliku.

Load(String, Int32)

Otwiera określony plik i inicjuje obiekt z zawartości pliku.

Save(String, Boolean)

Zapisuje kopię obiektu w określonym pliku.

SaveCompleted(String)

Powiadamia obiekt, który może zapisywać w jego pliku.

Dotyczy