RuntimeReflectionExtensions.GetRuntimeProperties(Type) 方法

定义

检索表示指定类型定义的所有属性的集合。Retrieves a collection that represents all the properties defined on a specified type.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Reflection::PropertyInfo ^> ^ GetRuntimeProperties(Type ^ type);
public static System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo> GetRuntimeProperties (this Type type);
static member GetRuntimeProperties : Type -> seq<System.Reflection.PropertyInfo>

参数

type
Type

包含属性的类型。The type that contains the properties.

返回

指定类型的属性集合。A collection of properties for the specified type.

异常

typenulltype is null.

注解

此方法返回在指定类型上定义的所有属性, 包括继承的、非公共的、实例和静态属性。This method returns all properties defined on the specified type, including inherited, non-public, instance, and static properties.

适用于

另请参阅