Aracılığıyla paylaş


IVsRunningDocumentTable.UnlockDocument Yöntem (UInt32, UInt32)

 

Açık belgenin bir okuma veya düzenleme kilidi serbest bırakır.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

int UnlockDocument(
    uint grfRDTLockType,
    uint dwCookie
)
int UnlockDocument(
    unsigned int grfRDTLockType,
    unsigned int dwCookie
)
abstract UnlockDocument : 
        grfRDTLockType:uint32 *
        dwCookie:uint32 -> int
Function UnlockDocument (
    grfRDTLockType As UInteger,
    dwCookie As UInteger
) As Integer

Parametreler

  • grfRDTLockType
    Type: System.UInt32

    [in] Değerleri öğesinden alınır _VSRDTFLAGS numaralandırması. Kullanım RDT_RequestUnlock bayrağı ne olması gerektiğini belirtmek için bu yöntem ile son kilidini kaydedilecek belge neden olacağından bu son kilidini olup olmadığını.

  • dwCookie
    Type: System.UInt32

    [in] Okuma veya düzenleme kilidi serbest bırakılacak olduğu açık belgeyi temsil eden Özet değer.

Dönüş Değeri

Type: System.Int32

Yöntem başarılı olursa, döndürür S_OK. Başarısız olursa, bir hata kodu döndürür.

Notlar

COM imza

Vsshell.idl:

HRESULT IVsRunningDocumentTable::UnlockDocument(
   [in] VSRDTFLAGS grfRDTLockType,
   [in] VSCOOKIE   dwCookie
);

dwCookie Parametresidir öğesinden döndürülen aynı değeri FindAndLockDocument veya RegisterAndLockDocument yöntemleri.

Anımsaması kullanışsız ise dwCookie, ardından unutmayın pszMkDocument ve arama FindAndLockDocument almak için yöntemi dwCookie, ve ardından arama UnlockDocument iki kez yöntemi. Ancak, bunun yapılması, performans etkileri vardır.

Ayrıca bkz.

IVsRunningDocumentTable Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön