RuntimeReflectionExtensions.GetRuntimeProperties(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>
<Extension()>
Public Function GetRuntimeProperties (type As Type) As IEnumerable(Of PropertyInfo)

参数

type
Type

包含属性的类型。

返回

IEnumerable<PropertyInfo>

指定类型的属性集合。

例外

typenull

注解

此方法返回在指定类型上定义的所有属性,包括继承的属性、非公共属性、实例和静态属性。

适用于

另请参阅