Edit

Share via


ConsumerConnectionPointCollection.IndexOf(ConsumerConnectionPoint) Method

Definition

Determines the index of the specified ConsumerConnectionPoint object in the collection.

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

Parameters

connectionPoint
ConsumerConnectionPoint

The ConsumerConnectionPoint to locate.

Returns

The zero-based index of the first occurrence of connectionPoint within the current ConsumerConnectionPointCollection, if found; otherwise, -1.

Remarks

If the specified consumer connection point item appears multiple times in the collection, the index of the first occurrence is returned.

Applies to