DynamicTypeService.GetTypeDiscoveryService Method (IVsHierarchy)
Gets a type discovery service for the specified hierarchy node.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public Function GetTypeDiscoveryService ( _
hierarchy As IVsHierarchy _
) As ITypeDiscoveryService
public ITypeDiscoveryService GetTypeDiscoveryService(
IVsHierarchy hierarchy
)
public:
ITypeDiscoveryService^ GetTypeDiscoveryService(
IVsHierarchy^ hierarchy
)
member GetTypeDiscoveryService :
hierarchy:IVsHierarchy -> ITypeDiscoveryService
public function GetTypeDiscoveryService(
hierarchy : IVsHierarchy
) : ITypeDiscoveryService
Parameters
hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe IVsHierarchy interface of the hierarchy node.
Return Value
Type: ITypeDiscoveryService
ITypeDiscoveryService.
Remarks
This method calls GetTypeDiscoveryService using VSITEMID_ROOT for the itemid parameter.
.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.