This documentation is archived and is not being maintained.
ImageField::GetValue Method
Visual Studio 2010
Retrieves the value of the specified field from the specified control.
Assembly: System.Web (in System.Web.dll)
protected: virtual Object^ GetValue( Control^ controlContainer, String^ fieldName, PropertyDescriptor^% cachedDescriptor )
Parameters
- controlContainer
- Type: System.Web.UI::Control
The Control that contains the field value.
- fieldName
- Type: System::String
The name of the field for which to retrieve the value.
- cachedDescriptor
- Type: System.ComponentModel::PropertyDescriptor%
A PropertyDescriptor, passed by reference, that represents the properties of the field.
| Exception | Condition |
|---|---|
| HttpException | The controlContainer parameter is nullptr. - or - The data item associated with the container control is nullptr. - or - The field specified by the fieldName parameter could not be found. |
The GetValue method is a helper method used by the ImageField object to determine the value of the specified field.
Notes to InheritorsWhen extending the ImageField object, you can override this method to provide custom routine to determine a field's value.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: