CollectionConverter.GetPropertiesSupported(ITypeDescriptorContext) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个值,该值指示此对象是否支持属性。
public:
override bool GetPropertiesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetPropertiesSupported(System.ComponentModel.ITypeDescriptorContext context);
override this.GetPropertiesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetPropertiesSupported (context As ITypeDescriptorContext) As Boolean
参数
- context
- ITypeDescriptorContext
提供格式上下文的一 ITypeDescriptorContext 个。
返回
false 因为 GetProperties(ITypeDescriptorContext, Object, Attribute[]) 不应调用以查找此对象的属性。 此方法永远不会返回 true。
注解
context参数可用于提取有关要从中调用此转换器的环境的其他信息。 这可以是 null,因此请始终检查。 此外,上下文对象的属性也可以返回 null。
集合不支持属性;因此,此方法始终返回 false。