Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataBinder.GetPropertyValue Method (Object, String)

Retrieves the value of the specified property of the specified object.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public static Object GetPropertyValue(
	Object container,
	string propName


Type: System.Object

The object that contains the property.

Type: System.String

The name of the property that contains the value to retrieve.

Return Value

Type: System.Object
The value of the specified property.


container is null.


propName is null or an empty string ("").


The object in container does not have the property specified by propName.

The GetPropertyValue method is used to retrieve the value of a property in an object.

The example for DataBinder demonstrates the use of this method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
© 2015 Microsoft