ImageIndexConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷從方法 GetStandardValues 回傳的標準值清單是否為排他清單。
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
格式化器的上下文。
傳回
true 若方法 GetStandardValues 回傳一個有效值的排他列表;否則, false。 此實作總是回傳 false。
備註
如果該方法回傳 GetStandardValues 的清單是排他的,則其他值都不成立。 這是列舉資料型態的典型表現。 如果該列表不是排他的,那麼除了提供標準值 GetStandardValues 列表外,還有其他有效的值。
在此類型轉換器中實現時,此方法總是返回 false。
通常 GetStandardValuesSupported 在嘗試使用 GetStandardValues and GetStandardValuesExclusive 方法之前,會先呼叫該方法。