VsShellUtilities::GetRDTDocumentInfo Method (IServiceProvider^, String^, IVsHierarchy^, UInt32, IVsPersistDocData^, UInt32)
Visual Studio 2015
Gets an IVsPersistDocData interface and a document cookie from the running document table for the specified document.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: static void GetRDTDocumentInfo( IServiceProvider^ site, String^ documentName, [OutAttribute] IVsHierarchy^% hierarchy, [OutAttribute] unsigned int% itemid, [OutAttribute] IVsPersistDocData^% persistDocData, [OutAttribute] unsigned int% docCookie )
Parameters
- site
- Type: System::IServiceProvider^
- documentName
-
Type:
System::String^
The moniker of the file.
- hierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[out] The IVsHierarchy interface of the project that containa the document.
- itemid
-
Type:
System::UInt32
[out] The item ID of the document.
- persistDocData
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsPersistDocData^
[out] The IVsPersistDocData interface for the document.
- docCookie
-
Type:
System::UInt32
[out] The identifier of the document that is held by the running document table.
The docCookie parameter can be used in calls to other IVsRunningDocumentTable methods on this document.
Show: