Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an entry in the running document table when a document is created or opened.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Function RegisterAndLockDocument ( _
lockType As _VSRDTFLAGS, _
mkDocument As String, _
hierarchy As IVsHierarchy, _
itemid As UInteger, _
docData As IntPtr _
) As UInteger
public uint RegisterAndLockDocument(
_VSRDTFLAGS lockType,
string mkDocument,
IVsHierarchy hierarchy,
uint itemid,
IntPtr docData
)
public:
unsigned int RegisterAndLockDocument(
_VSRDTFLAGS lockType,
String^ mkDocument,
IVsHierarchy^ hierarchy,
unsigned int itemid,
IntPtr docData
)
member RegisterAndLockDocument :
lockType:_VSRDTFLAGS *
mkDocument:string *
hierarchy:IVsHierarchy *
itemid:uint32 *
docData:IntPtr -> uint32
public function RegisterAndLockDocument(
lockType : _VSRDTFLAGS,
mkDocument : String,
hierarchy : IVsHierarchy,
itemid : uint,
docData : IntPtr
) : uint
Parameters
lockType
Type: Microsoft.VisualStudio.Shell.Interop._VSRDTFLAGSLock values from the _VSRDTFLAGS enumeration.
mkDocument
Type: StringThe absolute path of the document.
hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe IVsHierarchy interface of the hierarchy element that owns the document.
itemid
Type: UInt32The item ID of the node.
docData
Type: IntPtr[out] Returns a pointer to the IUnknown interface of the document data object.
Return Value
Type: UInt32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
This method calls RegisterAndLockDocument.
.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.