Udostępnij za pośrednictwem


Interfejs IVsRunningDocumentTable2

 

Reprezentuje uruchomiony tabeli dokumentu (RDT) i oferuje dodatkową funkcjonalność, poza IVsRunningDocumentTable interfejsu.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Składnia

[GuidAttribute("CD68D3CF-7124-4D3A-AFED-3E305C2B7D0B")]
[InterfaceTypeAttribute(1)]
public interface IVsRunningDocumentTable2
[GuidAttribute("CD68D3CF-7124-4D3A-AFED-3E305C2B7D0B")]
[InterfaceTypeAttribute(1)]
public interface class IVsRunningDocumentTable2
[<GuidAttribute("CD68D3CF-7124-4D3A-AFED-3E305C2B7D0B")>]
[<InterfaceTypeAttribute(1)>]
type IVsRunningDocumentTable2 = interface end
<GuidAttribute("CD68D3CF-7124-4D3A-AFED-3E305C2B7D0B")>
<InterfaceTypeAttribute(1)>
Public Interface IVsRunningDocumentTable2

Metody

Nazwa Opis
System_CAPS_pubmethod CloseDocuments(UInt32, IVsHierarchy, UInt32)

Zamyka jeden lub więcej dokumentów.

System_CAPS_pubmethod FindAndLockDocumentEx(UInt32, String, IVsHierarchy, UInt32, IVsHierarchy, UInt32, IntPtr, UInt32)

Lokalizuje dokumentu w Normalizacją przy użyciu nazwy pliku dokumentu, a następnie uzyskuje blokadę odczytu lub edycji w tym dokumencie.

System_CAPS_pubmethod FindOrRegisterAndLockDocument(UInt32, String, IVsHierarchy, UInt32, IntPtr, IVsHierarchy, UInt32, IntPtr, UInt32)

Dodaje blokady do zarejestrowanych lub wyrejestrować dokumentu.

System_CAPS_pubmethod QueryCloseRunningDocument(String, Int32)

Zamyka określony dokument z możliwe potwierdzenie, jeśli jest on otwarty w niezgodnym edytorze.

Uwagi

Ten interfejs umożliwia pakiet zamknąć dokumenty.

Uwagi dotyczące implementacji:

Ten interfejs jest implementowana przez środowisko naturalne.

Uwagi dotyczące wywoływania:

Uzyskania tego interfejsu, z IVsRunningDocumentTable interfejsu, który z kolei jest uzyskiwany przez wywołanie QueryService metoda Dostawca witryny o identyfikatorze usługi IVsRunningDocumentTable i identyfikator GUID interfejsu z IVsRunningDocumentTable interfejsu.

Zobacz też

Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku