System.Web.UI.WebControls.WebParts.WebPartVerbCollection.IndexOf Method

Searches for the specified Web Parts verb and returns the zero-based index of the first occurrence within the entire collection.

Syntax

public int IndexOf (WebPartVerb value)

Parameters

value
The System.Web.UI.WebControls.WebParts.WebPartVerb to be located.

Returns

The index of the Web Parts verb.

Remarks

For more information on using this method, see CollectionBase.System#Collections#IList#IndexOf(object).

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0