Επεξεργασία

Κοινή χρήση μέσω


TypeInfo.GetDeclaredProperty(String) Method

Definition

Returns an object that represents the specified property declared by the current type.

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

Parameters

name
String

The name of the property.

Returns

An object that represents the specified property, if found; otherwise, null.

Exceptions

name is null.

Applies to