CultureInfoConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法
定义
获取一个值,该值指示从 GetStandardValues(ITypeDescriptorContext) 返回的标准值的列表是否为穷举列表。Gets a value indicating whether the list of standard values returned from GetStandardValues(ITypeDescriptorContext) is an exhaustive list.
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
一个 ITypeDescriptorContext,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.
返回
返回 false,因为从 TypeConverter.StandardValuesCollection 返回的 GetStandardValues(ITypeDescriptorContext) 不是可能的值的穷举列表(换言之,其他值也是可能的)。false because the TypeConverter.StandardValuesCollection returned from GetStandardValues(ITypeDescriptorContext) is not an exhaustive list of possible values (that is, other values are possible). 此方法从不返回 true。This method never returns true.
注解
context 参数可用于提取有关从中调用该转换器的环境的附加信息。The context parameter can be used to extract additional information about the environment this converter is being invoked from. 此参数可能为 null,因此总是需要检查。This can be null, so always check. 同样,上下文对象的属性可以返回 null。Also, properties on the context object can return null.
如果列表不完整,则除了提供的标准值列表之外还有其他有效值 GetStandardValues 。When the list is not exhaustive, then there are other valid values besides the list of standard values that GetStandardValues provides.