RunningDocumentTable.RegisterAndLockDocument Yöntem

Tanım

Bir belge oluşturulduğunda veya açıldığında, çalışan belge tablosunda bir giriş oluşturur.

public:
 System::UInt32 RegisterAndLockDocument(Microsoft::VisualStudio::Shell::Interop::_VSRDTFLAGS lockType, System::String ^ mkDocument, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, System::UInt32 itemid, IntPtr docData);
public uint RegisterAndLockDocument (Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGS lockType, string mkDocument, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy, uint itemid, IntPtr docData);
member this.RegisterAndLockDocument : Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGS * string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * nativeint -> uint32
Public Function RegisterAndLockDocument (lockType As _VSRDTFLAGS, mkDocument As String, hierarchy As IVsHierarchy, itemid As UInteger, docData As IntPtr) As UInteger

Parametreler

lockType
_VSRDTFLAGS

Numaralandırmadaki değerleri kilitle _VSRDTFLAGS .

mkDocument
String

Belgenin mutlak yolu.

hierarchy
IVsHierarchy

IVsHierarchyBelgenin sahibi olan hiyerarşi öğesinin arabirimi.

itemid
UInt32

Düğümün öğe KIMLIĞI.

docData
IntPtr

nativeint

dışı IUnknown Belge veri nesnesinin arabirimine bir işaretçi döndürür.

Döndürülenler

UInt32

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

Açıklamalar

Bu yöntem çağırır RegisterAndLockDocument .

Şunlara uygulanır