Udostępnij za pośrednictwem


Metoda SubordinateFileHelper.LockSubordinateDocument — (IServiceProvider, DocData, String, UInt32)

Tworzy i zwraca Edytor niewidoczne dla danego pliku.

Ten interfejs API nie jest zgodny ze specyfikacją CLS. 

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Shell
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (w Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Składnia

'Deklaracja
<CLSCompliantAttribute(False)> _
Public Shared Function LockSubordinateDocument ( _
    serviceProvider As IServiceProvider, _
    parentDocData As DocData, _
    childFileName As String, _
    childItemId As UInteger _
) As SubordinateDocumentLockHolder
[CLSCompliantAttribute(false)]
public static SubordinateDocumentLockHolder LockSubordinateDocument(
    IServiceProvider serviceProvider,
    DocData parentDocData,
    string childFileName,
    uint childItemId
)

Parametry

  • childFileName
    Typ: System.String
    Plik, aby utworzyć blokadę do.
  • childItemId
    Typ: System.UInt32
    Element identyfikatora podrzędnego dokumentu identyfikacyjne.

Wartość zwracana

Typ: Microsoft.VisualStudio.Modeling.Shell.SubordinateDocumentLockHolder

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

SubordinateFileHelper Klasa

Przeciążenie LockSubordinateDocument

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Shell