ExtensionManager.InstantiateType<T, TProxy> 方法 (Type)

实例化类型并将其强制转换为接口。

命名空间:  Microsoft.Data.Schema.Extensibility
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
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 不支持泛型类型或方法。

类型参数

  • T
  • TProxy

参数

返回值

类型:T

.NET Framework 安全性

请参见

参考

ExtensionManager 类

InstantiateType 重载

Microsoft.Data.Schema.Extensibility 命名空间