RuntimeReflectionExtensions.GetRuntimeProperties(Type) RuntimeReflectionExtensions.GetRuntimeProperties(Type) RuntimeReflectionExtensions.GetRuntimeProperties(Type) Method

定义

检索表示指定类型上定义的所有属性的集合。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 Type Type

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

返回

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

异常

注解

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

适用于

另请参阅