TypeExtensions.GetProperty TypeExtensions.GetProperty TypeExtensions.GetProperty Method

定義

多載

GetProperty(Type, String) GetProperty(Type, String) GetProperty(Type, String)
GetProperty(Type, String, BindingFlags) GetProperty(Type, String, BindingFlags) GetProperty(Type, String, BindingFlags)
GetProperty(Type, String, Type) GetProperty(Type, String, Type) GetProperty(Type, String, Type)
GetProperty(Type, String, Type, Type[]) GetProperty(Type, String, Type, Type[]) GetProperty(Type, String, Type, Type[])

GetProperty(Type, String) GetProperty(Type, String) GetProperty(Type, String)

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name);
public static System.Reflection.PropertyInfo GetProperty (this Type type, string name);
static member GetProperty : Type * string -> System.Reflection.PropertyInfo

參數

type
Type Type Type

傳回

GetProperty(Type, String, BindingFlags) GetProperty(Type, String, BindingFlags) GetProperty(Type, String, BindingFlags)

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public static System.Reflection.PropertyInfo GetProperty (this Type type, string name, System.Reflection.BindingFlags bindingAttr);
static member GetProperty : Type * string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo

參數

type
Type Type Type

傳回

GetProperty(Type, String, Type) GetProperty(Type, String, Type) GetProperty(Type, String, Type)

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name, Type ^ returnType);
public static System.Reflection.PropertyInfo GetProperty (this Type type, string name, Type returnType);
static member GetProperty : Type * string * Type -> System.Reflection.PropertyInfo

參數

type
Type Type Type
returnType
Type Type Type

傳回

GetProperty(Type, String, Type, Type[]) GetProperty(Type, String, Type, Type[]) GetProperty(Type, String, Type, Type[])

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name, Type ^ returnType, cli::array <Type ^> ^ types);
public static System.Reflection.PropertyInfo GetProperty (this Type type, string name, Type returnType, Type[] types);
static member GetProperty : Type * string * Type * Type[] -> System.Reflection.PropertyInfo

參數

type
Type Type Type
returnType
Type Type Type
types
Type[]

傳回

適用於