PropertyTab.GetProperties 方法

定义

获取指定组件的属性。

重载

名称 说明
GetProperties(Object)

获取指定组件的属性。

GetProperties(Object, Attribute[])

获取与指定属性匹配的指定组件的属性。

GetProperties(ITypeDescriptorContext, Object, Attribute[])

获取与指定属性和上下文匹配的指定组件的属性。

GetProperties(Object)

Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs

获取指定组件的属性。

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ component);
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(object component);
public virtual System.ComponentModel.PropertyDescriptorCollection? GetProperties(object component);
abstract member GetProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties (component As Object) As PropertyDescriptorCollection

参数

component
Object

要检索其属性的组件。

返回

包含组件属性的 A PropertyDescriptorCollection

适用于

GetProperties(Object, Attribute[])

Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs

获取与指定属性匹配的指定组件的属性。

public:
 abstract System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ component, cli::array <Attribute ^> ^ attributes);
public abstract System.ComponentModel.PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes);
public abstract System.ComponentModel.PropertyDescriptorCollection? GetProperties(object component, Attribute[]? attributes);
public abstract System.ComponentModel.PropertyDescriptorCollection GetProperties(object component, Attribute[]? attributes);
abstract member GetProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public MustOverride Function GetProperties (component As Object, attributes As Attribute()) As PropertyDescriptorCollection

参数

component
Object

要从中检索属性的组件。

attributes
Attribute[]

一个类型 Attribute 数组,指示要检索的属性的属性。

返回

包含属性的 A PropertyDescriptorCollection

适用于

GetProperties(ITypeDescriptorContext, Object, Attribute[])

Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs
Source:
PropertyTab.cs

获取与指定属性和上下文匹配的指定组件的属性。

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ component, cli::array <Attribute ^> ^ attributes);
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object component, Attribute[] attributes);
public virtual System.ComponentModel.PropertyDescriptorCollection? GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object component, Attribute[]? attributes);
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object component, Attribute[]? attributes);
abstract member GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties (context As ITypeDescriptorContext, component As Object, attributes As Attribute()) As PropertyDescriptorCollection

参数

context
ITypeDescriptorContext

指示 ITypeDescriptorContext 要从中检索属性的上下文。

component
Object

要从中检索属性的组件。

attributes
Attribute[]

一个类型 Attribute 数组,指示要检索的属性的属性。

返回

包含与指定上下文和属性匹配的属性的 A PropertyDescriptorCollection

适用于