ImageField.GetValue Method

Retrieves the value of the specified field from the specified control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

protected:
virtual Object^ GetValue (
	Control^ controlContainer, 
	String^ fieldName, 
	PropertyDescriptor^% cachedDescriptor
)
protected Object GetValue (
	Control controlContainer, 
	String fieldName, 
	/** @ref */ PropertyDescriptor cachedDescriptor
)
Not applicable.

Parameters

controlContainer

The Control that contains the field value.

fieldName

The name of the field for which to retrieve the value.

cachedDescriptor

A PropertyDescriptor, passed by reference, that represents the properties of the field.

Return Value

The value of the specified field.

Exception typeCondition

HttpException

The controlContainer parameter is a null reference (Nothing in Visual Basic).

- or -

The data item associated with the container control is a null reference (Nothing in Visual Basic).

- 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 Inheritors: When extending the ImageField object, you can override this method to provide custom routine to determine a field's value.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: