TypeInfo.GetDeclaredProperty(String) Méthode

Définition

Retourne un objet qui représente la propriété spécifiée déclarée par le type actuel.

public:
 virtual System::Reflection::PropertyInfo ^ GetDeclaredProperty(System::String ^ name);
public virtual System.Reflection.PropertyInfo GetDeclaredProperty (string name);
public virtual System.Reflection.PropertyInfo? GetDeclaredProperty (string name);
abstract member GetDeclaredProperty : string -> System.Reflection.PropertyInfo
override this.GetDeclaredProperty : string -> System.Reflection.PropertyInfo
Public Overridable Function GetDeclaredProperty (name As String) As PropertyInfo

Paramètres

name
String

Nom de la propriété.

Retours

Objet qui représente la propriété spécifiée, si elle est trouvée ; sinon, null.

Exceptions

name a la valeur null.

S’applique à