Condividi tramite


Metodo ExtensionManager.InstantiateType<T, TProxy> (Type)

Crea un'istanza di un tipo e ne esegue il cast come interfaccia.

Spazio dei nomi:  Microsoft.Data.Schema.Extensibility
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Sintassi

'Dichiarazione
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 non supporta i tipi o i metodi generici.

Parametri di tipo

  • T
  • TProxy

Parametri

Valore restituito

Tipo: T

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ExtensionManager Classe

Overload InstantiateType

Spazio dei nomi Microsoft.Data.Schema.Extensibility