IVsParentHierarchy.GetBrowseExtender Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function GetBrowseExtender ( _
pHierarchyChild As IVsHierarchy, _
itemid As UInteger, _
<OutAttribute> ByRef ppDispatchExtension As Object _
) As Integer
'使用
Dim instance As IVsParentHierarchy
Dim pHierarchyChild As IVsHierarchy
Dim itemid As UInteger
Dim ppDispatchExtension As Object
Dim returnValue As Integer
returnValue = instance.GetBrowseExtender(pHierarchyChild, _
itemid, ppDispatchExtension)
int GetBrowseExtender(
IVsHierarchy pHierarchyChild,
uint itemid,
out Object ppDispatchExtension
)
int GetBrowseExtender(
[InAttribute] IVsHierarchy^ pHierarchyChild,
[InAttribute] unsigned int itemid,
[OutAttribute] Object^% ppDispatchExtension
)
function GetBrowseExtender(
pHierarchyChild : IVsHierarchy,
itemid : uint,
ppDispatchExtension : Object
) : int
Parameters
pHierarchyChild
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[in]
- itemid
Type: System.UInt32
ppDispatchExtension
Type: System.Object%[out]
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsParentHierarchy::GetBrowseExtender(
[in] IVsHierarchy *pHierarchyChild,
[in] VSITEMID itemid,
[out] IDispatch **ppDispatchExtension
);
Permissions
- 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.