Lire en anglais

Partager via


TypeInfo.GetProperty Méthode

Définition

Surcharges

GetProperty(String)

C#
public System.Reflection.PropertyInfo GetProperty(string name);

Paramètres

name
String

Retours

S’applique à

.NET Core 1.1 et autres versions
Produit Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

GetProperty(String, BindingFlags)

C#
public System.Reflection.PropertyInfo GetProperty(string name, System.Reflection.BindingFlags bindingAttr);

Paramètres

name
String
bindingAttr
BindingFlags

Retours

S’applique à

.NET Core 1.1 et autres versions
Produit Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

GetProperty(String, Type)

C#
public System.Reflection.PropertyInfo GetProperty(string name, Type returnType);

Paramètres

name
String
returnType
Type

Retours

S’applique à

.NET Core 1.1 et autres versions
Produit Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

GetProperty(String, Type[])

C#
public System.Reflection.PropertyInfo GetProperty(string name, Type[] types);

Paramètres

name
String
types
Type[]

Retours

S’applique à

.NET Core 1.1 et autres versions
Produit Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

GetProperty(String, Type, Type[])

C#
public System.Reflection.PropertyInfo GetProperty(string name, Type returnType, Type[] types);

Paramètres

name
String
returnType
Type
types
Type[]

Retours

S’applique à

.NET Core 1.1 et autres versions
Produit Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

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

C#
public System.Reflection.PropertyInfo GetProperty(string name, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);

Paramètres

name
String
returnType
Type
types
Type[]
modifiers
ParameterModifier[]

Retours

S’applique à

.NET Core 1.1 et autres versions
Produit Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6