ComponentConverter.GetPropertiesSupported(ITypeDescriptorContext) 方法

定义

获取一个值,该值指示此对象是否使用指定的上下文支持属性。

public:
 override bool GetPropertiesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
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,用于提供格式上下文。

返回

由于应调用 GetProperties(Object) 来查找此对象的属性,因此为 true。 此方法从不返回 false

注解

context 参数可用于提取有关从中调用该转换器的环境的附加信息。 此参数可能为 null,因此总是需要检查。 同样,上下文对象的属性可以返回 null

适用于