TypeListConverter.GetStandardValuesExclusive(ITypeDescriptorContext) Metoda

Definicja

Pobiera wartość wskazującą, czy lista wartości standardowych zwracanych z GetStandardValues(ITypeDescriptorContext) metody jest listą wyłączności.

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

Parametry

context
ITypeDescriptorContext

Element ITypeDescriptorContext , który udostępnia kontekst formatu.

Zwraca

trueTypeConverter.StandardValuesCollection ponieważ zwracana wartość jest GetStandardValues(ITypeDescriptorContext) wyczerpującą listą możliwych wartości. Ta metoda nigdy nie zwraca falsewartości .

Uwagi

Parametr context może służyć do wyodrębniania dodatkowych informacji o środowisku, z którego jest wywoływany ten konwerter. Może to być null, więc zawsze sprawdzaj. Ponadto właściwości obiektu kontekstu mogą zwracać wartość null.

Gdy lista jest wyłączna, żadna inna wartość nie jest prawidłowa oprócz listy wartości GetStandardValues standardowych, które zapewnia metoda.

Dotyczy