语言

ImageKeyConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法

定义

确定标准值 ImageKeyConverter 列表是否为独占值(也就是说,它是否允许除返回 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

提供 ITypeDescriptorContext 格式上下文,可用于提取有关要从中调用此类型转换器的环境的其他信息。 此参数或此参数的属性可以是 null。

返回

true 指示列表不允许其他值;否则,为 false. 始终返回 true。

注解

如果方法返回 GetStandardValues 的列表是独占的,则没有其他值有效。 这是枚举数据类型的典型类型。 如果列表不是独占的,除了提供的标准值列表之外,还有其他有效值 GetStandardValues 。

正如在此类型转换器中实现的,此方法始终返回 true。

通常,在尝试使用GetStandardValuesSupported和GetStandardValues方法之前,应调用GetStandardValuesExclusive该方法。

适用于