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
参数
- type
类型:System.Type
一个非扩展 Type。
返回值
类型:T
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。