EmbeddedMailObjectsCollection.Item[Int32] Propriedade

Definição

Retorna um elemento específico de um EmbeddedMailObjectsCollection, identificado por sua posição.Returns a specific element of a EmbeddedMailObjectsCollection, identified by its position.

public:
 property System::Web::UI::WebControls::EmbeddedMailObject ^ default[int] { System::Web::UI::WebControls::EmbeddedMailObject ^ get(int index); void set(int index, System::Web::UI::WebControls::EmbeddedMailObject ^ value); };
public System.Web.UI.WebControls.EmbeddedMailObject this[int index] { get; set; }
member this.Item(int) : System.Web.UI.WebControls.EmbeddedMailObject with get, set
Default Public Property Item(index As Integer) As EmbeddedMailObject

Parâmetros

index
Int32

O índice baseado em zero do elemento a ser obtido.The zero-based index of the element to get.

Valor da propriedade

EmbeddedMailObject

Retorna o EmbeddedMailObject no local especificado pelo index parâmetro.Returns the EmbeddedMailObject at the location specified by the index parameter.

Exceções

index é menor que zero.index is less than zero.

- ou --or- index é igual ou maior que o número de itens na coleção.index is equal to or greater than the number of items in the collection.

Comentários

Se não index corresponder a um membro existente da coleção, ocorrerá um erro.If index does not match an existing member of the collection, an error occurs.

A Item[] propriedade é a propriedade padrão para uma coleção.The Item[] property is the default property for a collection. Portanto, as seguintes linhas de código são equivalentes:Therefore, the following lines of code are equivalent:

myObject = myCollection(index)  
myObject = myCollection.Item(index)  
myObject = myCollection[index];  
myObject = myCollection.Item[index];  

Aplica-se a

Confira também