共用方式為


TypeProvider.IsSubclassOf(Type, Type) 方法

定義

指出 Type 是否為另一個 Type 的衍生類別。

public:
 static bool IsSubclassOf(Type ^ subclass, Type ^ superClass);
public static bool IsSubclassOf (Type subclass, Type superClass);
static member IsSubclassOf : Type * Type -> bool
Public Shared Function IsSubclassOf (subclass As Type, superClass As Type) As Boolean

參數

subclass
Type

要測試為衍生類別的 Type

superClass
Type

要測試為類別的 Type

傳回

Boolean

如果測試的關聯性為 true,則為 true,否則為 false

適用於