ImageKeyConverter.GetStandardValuesExclusive(ITypeDescriptorContext) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定 ImageKeyConverter 标准值的列表是否是排他的(即是否允许其他不是由 GetStandardValues 返回的值)。
public:
override bool GetStandardValuesExclusive(System::ComponentModel::ITypeDescriptorContext ^ context);
C#
public override bool GetStandardValuesExclusive (System.ComponentModel.ITypeDescriptorContext context);
C#
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
。
通常,在尝试使用GetStandardValues该方法和GetStandardValuesExclusive方法之前,应调用GetStandardValuesSupported该方法。
产品 | 版本 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |