ExpandableObjectConverter.GetPropertiesSupported(ITypeDescriptorContext) 方法

定义

获取一个值,该值指示此对象是否使用指定的上下文支持属性。Gets a value indicating whether this object supports properties using the specified 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,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.

返回

由于应调用 GetProperties(Object) 来查找此对象的属性,因此为 truetrue because GetProperties(Object) should be called to find the properties of this object. 此方法从不返回 falseThis method never returns false.

注解

context 参数可用于提取有关从中调用该转换器的环境的附加信息。The context parameter can be used to extract additional information about the environment this converter is being invoked from. 此参数可能为 null,因此总是需要检查。This can be null, so always check. 同样,上下文对象的属性可以返回 nullAlso, properties on the context object can return null.

适用于

另请参阅