語言

KeysConverter.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

格式化器的上下文。 此物件可用來擷取關於該轉換器所呼叫環境的額外資訊。 這可能是 null,所以你應該隨時確認。 此外,上下文物件上的屬性也可能回傳 null。

傳回

true 如果返回的 GetStandardValues 集合是可能值的窮盡清單;否則, false 如果有其他值可能。 此方法的預設實作總是回傳 false。

備註

此 context 參數在此方法的標準實作中未被使用。

如果該清單是排他的,則沒有其他值有效,例如資料型別。Enum 如果清單不是排他的,那麼除了標準值 GetStandardValues 清單之外,還有其他有效的數值。

適用於

另請參閱