BooleanConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一個值,表示從該 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。