GenericTypeParameterBuilder.IsAssignableFrom GenericTypeParameterBuilder.IsAssignableFrom GenericTypeParameterBuilder.IsAssignableFrom GenericTypeParameterBuilder.IsAssignableFrom Method

定义

任何情况下均引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

重载

IsAssignableFrom(TypeInfo) IsAssignableFrom(TypeInfo) IsAssignableFrom(TypeInfo)

任何情况下均引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

IsAssignableFrom(Type) IsAssignableFrom(Type) IsAssignableFrom(Type) IsAssignableFrom(Type)

任何情况下均引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

IsAssignableFrom(TypeInfo) IsAssignableFrom(TypeInfo) IsAssignableFrom(TypeInfo)

任何情况下均引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

public:
 override bool IsAssignableFrom(System::Reflection::TypeInfo ^ typeInfo);
public override bool IsAssignableFrom (System.Reflection.TypeInfo typeInfo);
override this.IsAssignableFrom : System.Reflection.TypeInfo -> bool

参数

typeInfo
TypeInfo TypeInfo TypeInfo TypeInfo

要测试的对象。The object to test.

返回

任何情况下均引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

异常

注解

不完整的泛型类型参数不支持此方法。This method is not supported for incomplete generic type parameters. 检索已完成的泛型类型定义的类型参数,并对检索到的类型使用反射。Retrieve the type parameter from the completed generic type definition and then use reflection on the retrieved type.

IsAssignableFrom(Type) IsAssignableFrom(Type) IsAssignableFrom(Type) IsAssignableFrom(Type)

任何情况下均引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

public:
 override bool IsAssignableFrom(Type ^ c);
public override bool IsAssignableFrom (Type c);
override this.IsAssignableFrom : Type -> bool
Public Overrides Function IsAssignableFrom (c As Type) As Boolean

参数

c
Type Type Type Type

要测试的对象。The object to test.

返回

任何情况下均引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

异常

注解

不完整的泛型类型参数不支持此方法。This method is not supported for incomplete generic type parameters. 检索已完成的泛型类型定义的类型参数,并对检索到的类型使用反射。Retrieve the type parameter from the completed generic type definition and then use reflection on the retrieved type.

适用于