ImageField.GetValue Method

Note: This method is new in the .NET Framework version 2.0.

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
)
JScript does not support passing value-type arguments by reference.

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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: