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)
Syntax
'Déclaration
Function OnRegisterDocData ( _
docCookie As UInteger, _
pHierNew As IVsHierarchy, _
itemidNew As UInteger _
) As Integer
'Utilisation
Dim instance As IVsPersistDocData2
Dim docCookie As UInteger
Dim pHierNew As IVsHierarchy
Dim itemidNew As UInteger
Dim returnValue As Integer
returnValue = instance.OnRegisterDocData(docCookie, _
pHierNew, itemidNew)
int OnRegisterDocData(
uint docCookie,
IVsHierarchy pHierNew,
uint itemidNew
)
int OnRegisterDocData(
[InAttribute] unsigned int docCookie,
[InAttribute] IVsHierarchy^ pHierNew,
[InAttribute] unsigned int itemidNew
)
abstract OnRegisterDocData :
docCookie:uint32 *
pHierNew:IVsHierarchy *
itemidNew:uint32 -> int
function OnRegisterDocData(
docCookie : uint,
pHierNew : IVsHierarchy,
itemidNew : uint
) : int
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.
Implements
IVsPersistDocData.OnRegisterDocData(UInt32, IVsHierarchy, UInt32)
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsPersistDocData2::OnRegisterDocData(
[in] VSCOOKIE docCookie,
[in] IVsHierarchy *pHierNew,
[in] VSITEMID itemidNew
);
.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.