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.

適用於

另請參閱