Freigeben über


SubordinateFileHelper.LockSubordinateDocument Method (IServiceProvider, DocData, UInt32)

Creates and returns an invisible editor for the given file.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
<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
)
[CLSCompliantAttribute(false)]
public:
static SubordinateDocumentLockHolder^ LockSubordinateDocument(
    IServiceProvider^ serviceProvider, 
    DocData^ parentDocData, 
    unsigned int childItemId
)
[<CLSCompliantAttribute(false)>]
static member LockSubordinateDocument : 
        serviceProvider:IServiceProvider * 
        parentDocData:DocData * 
        childItemId:uint32 -> SubordinateDocumentLockHolder
public static function LockSubordinateDocument(
    serviceProvider : IServiceProvider, 
    parentDocData : DocData, 
    childItemId : uint
) : SubordinateDocumentLockHolder

Parameters

  • childItemId
    Type: System.UInt32

    Item id identifying child file.

Return Value

Type: Microsoft.VisualStudio.Modeling.Shell.SubordinateDocumentLockHolder

.NET Framework Security

See Also

Reference

SubordinateFileHelper Class

LockSubordinateDocument Overload

Microsoft.VisualStudio.Modeling.Shell Namespace