_Type.GetProperties _Type.GetProperties _Type.GetProperties _Type.GetProperties Method

定义

为 COM 对象提供对 GetProperties 方法的版本无关的访问。Provides COM objects with version-independent access to the GetProperties method.

重载

GetProperties() GetProperties() GetProperties() GetProperties()

为 COM 对象提供对 GetProperties() 方法的版本无关的访问。Provides COM objects with version-independent access to the GetProperties() method.

GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags)

为 COM 对象提供对 GetProperties(BindingFlags) 方法的版本无关的访问。Provides COM objects with version-independent access to the GetProperties(BindingFlags) method.

注解

此方法用于访问托管类到从非托管代码,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetProperties方法获取的当前属性TypeThe Type.GetProperties method gets the properties of the current Type.

GetProperties() GetProperties() GetProperties() GetProperties()

为 COM 对象提供对 GetProperties() 方法的版本无关的访问。Provides COM objects with version-independent access to the GetProperties() method.

public:
 cli::array <System::Reflection::PropertyInfo ^> ^ GetProperties();
public System.Reflection.PropertyInfo[] GetProperties ();
abstract member GetProperties : unit -> System.Reflection.PropertyInfo[]
Public Function GetProperties () As PropertyInfo()

返回

表示当前 PropertyInfo 的所有公共属性的 Type 对象数组。An array of PropertyInfo objects representing all public properties of the current Type.

-or- 如果当前 PropertyInfo 没有公共属性,则为 Type 类型的空数组。An empty array of type PropertyInfo, if the current Type does not have public properties.

注解

此方法用于访问托管类到从非托管代码,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetProperties方法将返回所有公共属性的当前TypeThe Type.GetProperties method returns all the public properties of the current Type.

GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags)

为 COM 对象提供对 GetProperties(BindingFlags) 方法的版本无关的访问。Provides COM objects with version-independent access to the GetProperties(BindingFlags) method.

public:
 cli::array <System::Reflection::PropertyInfo ^> ^ GetProperties(System::Reflection::BindingFlags bindingAttr);
public System.Reflection.PropertyInfo[] GetProperties (System.Reflection.BindingFlags bindingAttr);
abstract member GetProperties : System.Reflection.BindingFlags -> System.Reflection.PropertyInfo[]
Public Function GetProperties (bindingAttr As BindingFlags) As PropertyInfo()

参数

bindingAttr
BindingFlags BindingFlags BindingFlags BindingFlags

一个位屏蔽,由一个或多个指定搜索执行方式的 BindingFlags 组成。A bitmask comprised of one or more BindingFlags that specify how the search is conducted.

- 或 --or- 零,以返回 nullZero, to return null.

返回

表示当前 PropertyInfo 的匹配指定绑定约束的所有属性的 Type 对象数组。An array of PropertyInfo objects representing all properties of the current Type that match the specified binding constraints.

- 或 --or- 如果当前 PropertyInfo 没有属性,或者如果没有一个属性匹配绑定约束,则为 Type 类型的空数组。An empty array of type PropertyInfo, if the current Type does not have properties, or if none of the properties match the binding constraints.

注解

此方法用于访问托管类到从非托管代码,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetProperties的当前属性的方法搜索Type,使用指定的绑定约束。The Type.GetProperties method searches for the properties of the current Type, using the specified binding constraints.

适用于