Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
<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
)
[CLSCompliantAttribute(false)]
public:
static SubordinateDocumentLockHolder^ LockSubordinateDocument(
IServiceProvider^ serviceProvider,
DocData^ parentDocData,
String^ childFileName,
unsigned int childItemId
)
[<CLSCompliantAttribute(false)>]
static member LockSubordinateDocument :
serviceProvider:IServiceProvider *
parentDocData:DocData *
childFileName:string *
childItemId:uint32 -> SubordinateDocumentLockHolder
public static function LockSubordinateDocument(
serviceProvider : IServiceProvider,
parentDocData : DocData,
childFileName : String,
childItemId : uint
) : SubordinateDocumentLockHolder
Parameters
serviceProvider
Type: IServiceProviderService provider used to retrieve shell services.
parentDocData
Type: Microsoft.VisualStudio.Modeling.Shell.DocDataParent document.
childFileName
Type: StringFile to create the lock holder for.
childItemId
Type: UInt32Item id identifying subordinate document.
Return Value
Type: Microsoft.VisualStudio.Modeling.Shell.SubordinateDocumentLockHolder
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.