Share via


KeysConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法

定義

使用指定的 ITypeDescriptorContext,判斷從 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

格式子 (Formatter) 內容。 這個物件可用來擷取環境的其他相關資訊,而這個轉換器就是從這個環境叫用的。 這可能是 null,所以您要隨時檢查。 此外,內容物件上的屬性也可能會傳回 null

傳回

如果從 GetStandardValues 傳回的集合是可能值的詳盡清單,則為 true,但如果其他的值為可能,則為 false。 這個方法的預設實作永遠會傳回 false

備註

參數 context 不會用於此方法的標準實作中。

如果清單是獨佔的,則沒有其他值有效,例如在資料類型中 Enum 。 如果清單不是獨佔的,則除了標準值清單提供之外,還有其他有效值 GetStandardValues

適用於

另請參閱