ExtensionManager.InstantiateType<T, TProxy> Method (Type)
Instantiates a type and casts it as an interface.
Namespace: Microsoft.Data.Schema.Extensibility
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Shared Function InstantiateType(Of T As Class, TProxy As {Object, T, IExtensionProxy(Of T)}) ( _
type As Type _
) As T
public static T InstantiateType<T, TProxy>(
Type type
)
where T : class
where TProxy : Object, T, IExtensionProxy<T>
public:
generic<typename T, typename TProxy>
where T : ref class
where TProxy : Object, T, IExtensionProxy<T>
static T InstantiateType(
Type^ type
)
static member InstantiateType :
type:Type -> 'T when 'T : not struct when 'TProxy : Object and 'T and IExtensionProxy<'T>
JScript does not support generic types or methods.
Type Parameters
- T
- TProxy
Parameters
- type
Type: System.Type
A Type that is not an extension.
Return Value
Type: T
.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.