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

包含屬性的型別。

傳回

所指定類型的屬性集合。

例外狀況

typenull

備註

這個方法會傳回指定型別上定義的所有屬性,包括繼承、非公用、實例和靜態屬性。

適用於

另請參閱