DataBinder.GetPropertyValue Method (Object, String)
.NET Framework (current version)
Retrieves the value of the specified property of the specified object.
Assembly: System.Web (in System.Web.dll)
Public Shared Function GetPropertyValue ( container As Object, propName As String ) As Object
Parameters
- container
-
Type:
System.Object
The object that contains the property.
- propName
-
Type:
System.String
The name of the property that contains the value to retrieve.
| Exception | Condition |
|---|---|
| ArgumentNullException | container is null. -or- propName is null or an empty string (""). |
| HttpException | 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
Available since 1.1
Available since 1.1
Show: