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

Return Value

Type: T

.NET Framework Security

See Also

Reference

ExtensionManager Class

InstantiateType Overload

Microsoft.Data.Schema.Extensibility Namespace