IVsRunningDocumentTable.RegisterDocumentLockHolder Yöntem (UInt32, UInt32, IVsDocumentLockHolder, UInt32)
Bir belge kilit sahibi çalışan belge tablosunda kaydeder.
Ad Alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)
Sözdizimi
int RegisterDocumentLockHolder(
uint grfRDLH,
uint dwCookie,
IVsDocumentLockHolder pLockHolder,
out uint pdwLHCookie
)
int RegisterDocumentLockHolder(
unsigned int grfRDLH,
unsigned int dwCookie,
IVsDocumentLockHolder^ pLockHolder,
[OutAttribute] unsigned int% pdwLHCookie
)
abstract RegisterDocumentLockHolder :
grfRDLH:uint32 *
dwCookie:uint32 *
pLockHolder:IVsDocumentLockHolder *
pdwLHCookie:uint32 byref -> int
Function RegisterDocumentLockHolder (
grfRDLH As UInteger,
dwCookie As UInteger,
pLockHolder As IVsDocumentLockHolder,
<OutAttribute> ByRef pdwLHCookie As UInteger
) As Integer
Parametreler
grfRDLH
Type: System.UInt32[in] Sıfır veya bir bayrak alınırlar budur __VSREGDOCLOCKHOLDER numaralandırması.
dwCookie
Type: System.UInt32[in] Okuma veya düzenleme kilidi serbest bırakılacak olduğu açık belgeyi temsil eden Özet değer.
pLockHolder
Type: Microsoft.VisualStudio.Shell.Interop.IVsDocumentLockHolder[in] Bir IVsDocumentLockHolder kayıtlı belge için belge kilit sahibi temsil eden arabirim.
pdwLHCookie
Type: System.UInt32[out] Belge kilit sahibi temsil eden benzersiz bir değerdir.
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::RegisterDocumentLockHolder(
[in] VSREGDOCLOCKHOLDER grfRDLH,
[in] VSCOOKIE dwCookie,
[in] IVsDocumentLockHolder *pLockHolder,
[out] VSCOOKIE *pdwLHCookie
);
Döndürülen bu tanımlayıcı kullanılması pdwLHCookie çağırarak belge kilit sahibi kaydını silmek için parametre UnregisterDocumentLockHolder yöntemi.
dwCookie Parametresidir öğesinden döndürülen aynı değeri FindAndLockDocument veya RegisterAndLockDocument yöntemleri.
Ayrıca bkz.
IVsRunningDocumentTable Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı
Başa dön