TypeInfo.IsAssignableFrom Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IsAssignableFrom(TypeInfo) |
Returns a value that indicates whether the specified type can be assigned to the current type. |
IsAssignableFrom(Type) |
IsAssignableFrom(TypeInfo)
- Source:
- TypeInfo.cs
- Source:
- TypeInfo.cs
- Source:
- TypeInfo.cs
Returns a value that indicates whether the specified type can be assigned to the current type.
public:
virtual bool IsAssignableFrom(System::Reflection::TypeInfo ^ typeInfo);
public virtual bool IsAssignableFrom (System.Reflection.TypeInfo typeInfo);
public virtual bool IsAssignableFrom (System.Reflection.TypeInfo? typeInfo);
abstract member IsAssignableFrom : System.Reflection.TypeInfo -> bool
override this.IsAssignableFrom : System.Reflection.TypeInfo -> bool
override this.IsAssignableFrom : System.Reflection.TypeInfo -> bool
Public Overridable Function IsAssignableFrom (typeInfo As TypeInfo) As Boolean
Parameters
- typeInfo
- TypeInfo
The type to check.
Returns
true
if the specified type can be assigned to this type; otherwise, false
.
Applies to
IsAssignableFrom(Type)
public:
virtual bool IsAssignableFrom(Type ^ c);
public virtual bool IsAssignableFrom (Type c);
abstract member IsAssignableFrom : Type -> bool
override this.IsAssignableFrom : Type -> bool
Public Overridable Function IsAssignableFrom (c As Type) As Boolean
Parameters
- c
- Type
Returns
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา