ImageKeyConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷 的 ImageKeyConverter 標準值列表是否異於 (即是否允許 的值非 由 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
An ITypeDescriptorContext 提供格式上下文,可用來擷取關於該類型轉換器所呼叫環境的額外資訊。 這個參數或其性質可以是 null。
傳回
true用以表示列表不允許額外值;否則,。 false 一律傳回 true。
備註
如果方法回傳 GetStandardValues 的清單是排他的,則其他值都不成立。 這是列舉資料型態的典型表現。 如果該列表不是排他性,除了提供標準值 GetStandardValues 的列表外,還有其他有效的值。
在此類型轉換器中實現時,此方法總是返回 true。
通常,你應該先呼叫該GetStandardValuesSupported方法,再嘗試使用 and GetStandardValues 方法GetStandardValuesExclusive。