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
‘사용 방법
Dim instance As DynamicTypeService
Dim hierarchy As IVsHierarchy
Dim returnValue As ITypeDiscoveryService
returnValue = instance.GetTypeDiscoveryService(hierarchy)
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.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.