IndexOf Method
Collapse the table of content
Expand the table of content

ConsumerConnectionPointCollection.IndexOf Method (ConsumerConnectionPoint)


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

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public int IndexOf(
	ConsumerConnectionPoint connectionPoint

Return Value

Type: System.Int32

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

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

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft