TypeConverter.GetPropertiesSupported 方法

定义

返回此对象是否支持属性。Returns whether this object supports properties.

重载

GetPropertiesSupported(ITypeDescriptorContext)

通过使用指定的上下文,返回此对象是否支持属性。Returns whether this object supports properties, using the specified context.

GetPropertiesSupported()

返回此对象是否支持属性。Returns whether this object supports properties.

GetPropertiesSupported(ITypeDescriptorContext)

通过使用指定的上下文,返回此对象是否支持属性。Returns whether this object supports properties, using the specified 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,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.

返回

如果应调用 true 来查找此对象的属性,则为 GetProperties(Object);否则为 falsetrue if GetProperties(Object) should be called to find the properties of this object; otherwise, false.

注解

当在此类中实现时,此方法始终返回 falseAs implemented in this class, this method always returns false.

继承者说明

如果要转换的类型支持属性,则重写此方法。Override this method if the type you want to convert supports properties.

使用 context 参数提取有关调用此转换器的环境的附加信息。Use the context parameter to extract additional information about the environment from which this converter is invoked. 此参数可以 null,因此请始终选中此参数。This parameter can be null, so always check it. 同样,上下文对象的属性可以返回 nullAlso, properties on the context object can return null.

另请参阅

GetPropertiesSupported()

返回此对象是否支持属性。Returns whether this object supports properties.

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

返回

如果应调用 true 来查找此对象的属性,则为 GetProperties(Object);否则为 falsetrue if GetProperties(Object) should be called to find the properties of this object; otherwise, false.

注解

当在此类中实现时,此方法始终返回 falseAs implemented in this class, this method always returns false.

适用于