IObjectListFieldCollection::IndexOf Method (String^)

 

Returns the index of a field. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

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

int IndexOf(
	String^ fieldIDOrTitle
)

Parameters

fieldIDOrTitle
Type: System::String^

A string to compare with the Title or DataField property.

Return Value

Type: System::Int32

The index of the specified field.

In the second version of this method, it searches for a field with the Title property fieldId and returns the first matching field. If no match is found, it searches for a field with the DataField property's fieldID parameter and returns the first matching field. Otherwise, it returns -1.

.NET Framework
Available since 1.1
Return to top
Show: