RunningDocumentTable::FindAndLockDocumentEx Method (_VSRDTFLAGS, String^, IVsHierarchy^, UInt32, UInt32)

 

Finds and locks the document.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
Object^ FindAndLockDocumentEx(
	_VSRDTFLAGS lockType,
	String^ moniker,
	IVsHierarchy^ hierPreferred,
	unsigned int itemidPreferred,
	[OutAttribute] unsigned int% docCookie
)

Parameters

lockType
Type: Microsoft.VisualStudio.Shell.Interop::_VSRDTFLAGS

The lock type.

moniker
Type: System::String^

The document moniker.

hierPreferred
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

The project hierarchy.

itemidPreferred
Type: System::UInt32

The item ID.

docCookie
Type: System::UInt32

The document cookie.

Return Value

Type: System::Object^

The lock.

Return to top
Show: