BooleanConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法

定義

會得到一個值,表示從該 GetStandardValues(ITypeDescriptorContext) 方法回傳的標準值清單是否為排他清單。

public:
 override bool GetStandardValuesExclusive(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetStandardValuesExclusive(System.ComponentModel.ITypeDescriptorContext? context);
public override bool GetStandardValuesExclusive(System.ComponentModel.ITypeDescriptorContext context);
override this.GetStandardValuesExclusive : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetStandardValuesExclusive (context As ITypeDescriptorContext) As Boolean

參數

context
ITypeDescriptorContext

提供格式背景的一個 ITypeDescriptorContext

傳回

true 因為 TypeConverter.StandardValuesCollection 返回的來源 GetStandardValues(ITypeDescriptorContext) 是一個可能值的詳盡清單。 此方法永遠不會返回 false

備註

布林資料型態只有兩個標準值,且 truefalse。 此方法回傳的值 TypeConverter.StandardValuesCollection 包含所有可能的值。 因此,此方法總是回傳 true

適用於