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
'宣言
Public Function GetTypeDiscoveryService ( _
hierarchy As IVsHierarchy _
) As ITypeDiscoveryService
public ITypeDiscoveryService GetTypeDiscoveryService(
IVsHierarchy hierarchy
)
Parameters
- hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The IVsHierarchy interface of the hierarchy node.
Return Value
Type: System.ComponentModel.Design.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.