TypeConverter.GetStandardValuesExclusive TypeConverter.GetStandardValuesExclusive TypeConverter.GetStandardValuesExclusive TypeConverter.GetStandardValuesExclusive Method

定义

返回从 GetStandardValues() 返回的标准值的集合是否为独占列表。Returns whether the collection of standard values returned from GetStandardValues() is an exclusive list.

重载

GetStandardValuesExclusive() GetStandardValuesExclusive() GetStandardValuesExclusive() GetStandardValuesExclusive()

返回从 GetStandardValues() 返回的标准值的集合是否为独占列表。Returns whether the collection of standard values returned from GetStandardValues() is an exclusive list.

GetStandardValuesExclusive(ITypeDescriptorContext) GetStandardValuesExclusive(ITypeDescriptorContext) GetStandardValuesExclusive(ITypeDescriptorContext) GetStandardValuesExclusive(ITypeDescriptorContext)

使用指定的上下文返回从 GetStandardValues() 返回的标准值的集合是否为可能值的独占列表。Returns whether the collection of standard values returned from GetStandardValues() is an exclusive list of possible values, using the specified context.

GetStandardValuesExclusive() GetStandardValuesExclusive() GetStandardValuesExclusive() GetStandardValuesExclusive()

返回从 GetStandardValues() 返回的标准值的集合是否为独占列表。Returns whether the collection of standard values returned from GetStandardValues() is an exclusive list.

public:
 bool GetStandardValuesExclusive();
public bool GetStandardValuesExclusive ();
member this.GetStandardValuesExclusive : unit -> bool
Public Function GetStandardValuesExclusive () As Boolean

返回

如果从 TypeConverter.StandardValuesCollection 返回的 GetStandardValues() 是可能值的穷举列表,则为 true;如果还可能有其他值,则为 falsetrue if the TypeConverter.StandardValuesCollection returned from GetStandardValues() is an exhaustive list of possible values; false if other values are possible.

注解

当在此类中实现时,此方法始终返回 falseAs implemented in this class, this method always returns false.

如果该列表是独占的(如在枚举数据类型中),则其他任何值都无效。If the list is exclusive, such as in an enumeration data type, then no other values are valid. 如果该列表不是独占的,那么除 GetStandardValues 方法提供的标准值列表之外,可能还存在其他有效值。If the list is not exclusive, then other valid values might exist in addition to the list of standard values that the GetStandardValues method provides. 如果这些值是独占的,则 GetStandardValues 返回的列表不应允许编辑这些值。If the values are exclusive, the list returned by GetStandardValues should not allow these values to be edited.

GetStandardValuesExclusive(ITypeDescriptorContext) GetStandardValuesExclusive(ITypeDescriptorContext) GetStandardValuesExclusive(ITypeDescriptorContext) GetStandardValuesExclusive(ITypeDescriptorContext)

使用指定的上下文返回从 GetStandardValues() 返回的标准值的集合是否为可能值的独占列表。Returns whether the collection of standard values returned from GetStandardValues() is an exclusive list of possible values, using the specified context.

public:
 virtual bool GetStandardValuesExclusive(System::ComponentModel::ITypeDescriptorContext ^ context);
public virtual bool GetStandardValuesExclusive (System.ComponentModel.ITypeDescriptorContext context);
abstract member GetStandardValuesExclusive : System.ComponentModel.ITypeDescriptorContext -> bool
override this.GetStandardValuesExclusive : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overridable Function GetStandardValuesExclusive (context As ITypeDescriptorContext) As Boolean

参数

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

一个 ITypeDescriptorContext,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.

返回

如果从 TypeConverter.StandardValuesCollection 返回的 GetStandardValues() 是可能值的穷举列表,则为 true;如果还可能有其他值,则为 falsetrue if the TypeConverter.StandardValuesCollection returned from GetStandardValues() is an exhaustive list of possible values; false if other values are possible.

注解

当在此类中实现时,此方法始终返回 falseAs implemented in this class, this method always returns false.

如果该列表是独占的(如在枚举数据类型中),则其他任何值都无效。If the list is exclusive, such as in an enumeration data type, then no other values are valid. 如果该列表不是独占的,那么除 GetStandardValues 方法提供的标准值列表之外,可能还存在其他有效值。If the list is not exclusive, then other valid values might exist in addition to the list of standard values that the GetStandardValues method provides. 如果这些值是独占的,则 GetStandardValues 返回的列表不应允许编辑这些值。If the values are exclusive, the list returned by GetStandardValues should not allow these values to be edited.

继承者说明

如果你想要转换的类型支持标准值,重写此方法。Override this method if the type you want to convert supports standard values.

使用 context 参数提取有关调用此转换器的环境的附加信息。Use the context parameter to extract additional information about the environment from which this converter is invoked. 此参数可以是null,因此总是需要检查。This parameter can be null, so always check it. 同样,上下文对象的属性可以返回 nullAlso, properties on the context object can return null.

另请参阅

适用于