Edit

Share via


WebPartDescriptionCollection.IndexOf(WebPartDescription) Method

Definition

Returns the position of a particular member of the collection.

public:
 int IndexOf(System::Web::UI::WebControls::WebParts::WebPartDescription ^ value);
public int IndexOf (System.Web.UI.WebControls.WebParts.WebPartDescription value);
member this.IndexOf : System.Web.UI.WebControls.WebParts.WebPartDescription -> int
Public Function IndexOf (value As WebPartDescription) As Integer

Parameters

value
WebPartDescription

A WebPartDescription that is a member of the collection.

Returns

An integer that indicates the position of a particular object in the collection.

Remarks

The IndexOf method is useful if you have multiple WebPartDescription objects, and you need to know the ordinal position of one object relative to the others.

Applies to

See also