Partager via


SubordinateFileHelper.LockSubordinateDocument, méthode (IServiceProvider, DocData, UInt32)

Crée et retourne un éditeur invisible pour le fichier donné.

Cette API n'est pas conforme CLS. 

Espace de noms :  Microsoft.VisualStudio.Modeling.Shell
Assembly :  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (dans Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntaxe

'Déclaration
<CLSCompliantAttribute(False)> _
Public Shared Function LockSubordinateDocument ( _
    serviceProvider As IServiceProvider, _
    parentDocData As DocData, _
    childItemId As UInteger _
) As SubordinateDocumentLockHolder
[CLSCompliantAttribute(false)]
public static SubordinateDocumentLockHolder LockSubordinateDocument(
    IServiceProvider serviceProvider,
    DocData parentDocData,
    uint childItemId
)

Paramètres

  • serviceProvider
    Type : System.IServiceProvider
    Fournisseur de services utilisé pour extraire des services de shell.
  • childItemId
    Type : System.UInt32
    Identificateur d'élément identifiant le fichier enfant.

Valeur de retour

Type : Microsoft.VisualStudio.Modeling.Shell.SubordinateDocumentLockHolder

Sécurité .NET Framework

Voir aussi

Référence

SubordinateFileHelper Classe

LockSubordinateDocument, surcharge

Microsoft.VisualStudio.Modeling.Shell, espace de noms