Retrieves a type definition, given a type name and a data source GUID.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Overridable Function GetType ( _
source As Guid, _
typeName As String _
) As Type
'使用
Dim instance As DataSourceSpecializer
Dim source As Guid
Dim typeName As String
Dim returnValue As Type
returnValue = instance.GetType(source, _
typeName)
public virtual Type GetType(
Guid source,
string typeName
)
public:
virtual Type^ GetType(
Guid source,
String^ typeName
)
public function GetType(
source : Guid,
typeName : String
) : Type
Parameters
source
Type: System.GuidDDEX data source GUID.
typeName
Type: System.StringName of the assembly to retrieve.
Return Value
Type: System.Type
A type definition.
Implements
IVsDataSourceSpecializer.GetType(Guid, String)
Remarks
This method allows DDEX providers to customize resolution of types referenced from dynamic locations such as XML files.
Notes to Inheritors:
The base implementation of this method returns a null reference (Nothing in Visual Basic).
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.