ProviderConnectionPointCollection.IndexOf(ProviderConnectionPoint) Método

Definição

Retorna a posição de um objeto ProviderConnectionPoint específico dentro de uma coleção.Returns the position of a particular ProviderConnectionPoint object within a collection.

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

Parâmetros

connectionPoint
ProviderConnectionPoint

O ProviderConnectionPoint a ser localizado.The ProviderConnectionPoint to locate.

Retornos

Int32

Um inteiro que indica a posição de índice de base zero do connectionPoint especificado dentro de uma ProviderConnectionPointCollection.An integer that indicates the zero-based index position of the specified connectionPoint within a ProviderConnectionPointCollection.

Comentários

O IndexOf método é útil quando há várias instâncias de ProviderConnectionPoint objetos em uma página, e seu código precisa saber o local (ou índice) de um objeto de ponto de conexão em relação aos outros na coleção.The IndexOf method is useful when there are multiple instances of ProviderConnectionPoint objects on a page, and your code needs to know the location (or index) of one connection point object relative to the others in the collection.

Se o objeto do ponto de conexão do provedor especificado aparecer várias vezes na coleção, o índice da primeira ocorrência será retornado.If the specified provider connection point object appears multiple times in the collection, the index of the first occurrence is returned.

Aplica-se a

Confira também