IVsPersistDocData2::OnRegisterDocData Method (UInt32, IVsHierarchy^, UInt32)

 

Called by the Running Document Table (RDT) when it registers the document data in the RDT.

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

int OnRegisterDocData(
	unsigned int docCookie,
	IVsHierarchy^ pHierNew,
	unsigned int itemidNew
)

Parameters

docCookie
Type: System::UInt32

[in] Abstract handle for the document to be registered. See the VSDOCCOOKIE datatype.

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

[in] Pointer to the IVsHierarchy interface.

itemidNew
Type: System::UInt32

[in] Item identifier of the document to be registered from VSITEMID.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsPersistDocData2::OnRegisterDocData(
   [in] VSCOOKIE docCookie,
   [in] IVsHierarchy *pHierNew,
   [in] VSITEMID itemidNew
);
Return to top
Show: