TypeConverter.GetPropertiesSupported 方法

定义

返回此对象是否支持属性。

重载

GetPropertiesSupported(ITypeDescriptorContext)

通过使用指定的上下文,返回此对象是否支持属性。

GetPropertiesSupported()

返回此对象是否支持属性。

GetPropertiesSupported(ITypeDescriptorContext)

通过使用指定的上下文,返回此对象是否支持属性。

public:
 virtual bool GetPropertiesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public virtual bool GetPropertiesSupported (System.ComponentModel.ITypeDescriptorContext context);
public virtual bool GetPropertiesSupported (System.ComponentModel.ITypeDescriptorContext? context);
abstract member GetPropertiesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
override this.GetPropertiesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overridable Function GetPropertiesSupported (context As ITypeDescriptorContext) As Boolean

参数

context
ITypeDescriptorContext

一个 ITypeDescriptorContext,用于提供格式上下文。

返回

Boolean

如果应调用 true 来查找此对象的属性,则为 GetProperties(Object);否则为 false

注解

当在此类中实现时,此方法始终返回 false

继承者说明

如果要转换的类型支持属性,请重写此方法。

使用 context 参数提取有关调用此转换器的环境的附加信息。 此参数可以是 null,因此请始终检查它。 同样,上下文对象的属性可以返回 null

另请参阅

适用于

GetPropertiesSupported()

返回此对象是否支持属性。

public:
 bool GetPropertiesSupported();
public bool GetPropertiesSupported ();
member this.GetPropertiesSupported : unit -> bool
Public Function GetPropertiesSupported () As Boolean

返回

Boolean

如果应调用 true 来查找此对象的属性,则为 GetProperties(Object);否则为 false

注解

当在此类中实现时,此方法始终返回 false

适用于