Share via


IVsRunningDocumentTable4.GetDocumentEditLockCount Method

This is functionally identical to calling IVsRunningDocumentTable.GetDocumentInfo and requesting only the edit lock count, but it is easier to consume from managed code. In managed code it is impossible to request the flags without also requesting all of the other information, and requesting all of the other information can result in the potentially unnecessary initialization of an RDT_PendingInitialization document.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Function GetDocumentEditLockCount ( _
    cookie As UInteger _
) As UInteger
uint GetDocumentEditLockCount(
    uint cookie
)
unsigned int GetDocumentEditLockCount(
    [InAttribute] unsigned int cookie
)
abstract GetDocumentEditLockCount : 
        cookie:uint32 -> uint32
function GetDocumentEditLockCount(
    cookie : uint
) : uint

Parameters

  • cookie
    Type: UInt32

    The document cookie.

Return Value

Type: UInt32
The number of outstanding edit locks for the document.

.NET Framework Security

See Also

Reference

IVsRunningDocumentTable4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace