ControlPropertyNameConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法
定义
使用指定的上下文返回一个值,该值指示由 GetStandardValues 方法返回的标准值的集合是否是唯一的可能值列表。Returns a value that indicates whether the collection of standard values returned by the GetStandardValues method is an exclusive list of possible values, using the specified 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
提供格式上下文的 ITypeDescriptorContext,可用来提取有关从中调用此转换器的环境的附加信息。An ITypeDescriptorContext that provides a format context that can be used to extract additional information about the environment from which this converter is invoked. 此参数或其属性可以为 null。This parameter or properties of this parameter can be null.
返回
所有情况下都为 false,表示列表不是唯一的。false in all cases, which indicates that the list is not exclusive.
注解
GetStandardValuesExclusive方法始终返回 false ,以指示由方法返回的属性值列表 GetStandardValues 不是可能值的独占列表。The GetStandardValuesExclusive method always returns false to indicate that the list of property values returned by the GetStandardValues method is not an exclusive list of possible values.
使用 context 参数提取有关调用此转换器的环境的附加信息。Use the context parameter to extract additional information about the environment from which this converter is invoked. 此参数可以为 null ,并且上下文对象上的属性可以返回 null 。This parameter can be null, and properties on the context object can return null.
继承者说明
如果要转换的类型支持标准值,请重写此方法。Override this method if the type you want to convert supports standard values.