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
- type
Tipo: System.Type
Oggetto Type che non è un'estensione.
Valore restituito
Tipo: T
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.