GenericTypeParameterBuilder.SetBaseTypeConstraintCore(Type) 方法

定義

在衍生類別中覆寫時,設定類型必須繼承的基底型別,才能取代類型參數。

protected:
 abstract void SetBaseTypeConstraintCore(Type ^ baseTypeConstraint);
protected abstract void SetBaseTypeConstraintCore (Type? baseTypeConstraint);
abstract member SetBaseTypeConstraintCore : Type -> unit
Protected MustOverride Sub SetBaseTypeConstraintCore (baseTypeConstraint As Type)

參數

baseTypeConstraint
Type

所有類型必須繼承才能取代成型別參數的 Type

適用於