GetDeclaredProperty Method

TypeInfo.GetDeclaredProperty Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public virtual PropertyInfo GetDeclaredProperty(
	string name
)

Parameters

name
Type: System.String
The name of the property.

Return Value

Type: System.Reflection.PropertyInfo
An object that represents the specified property, if found; otherwise, null.

ExceptionCondition
ArgumentNullException

name is null.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft