IRemoteArgumentEnumeratorContract.GetCurrent Método
Definição
Retorna o RemoteArgument na coleção na posição atual do enumerador.Returns the RemoteArgument in the collection at the current position of the enumerator.
public:
System::AddIn::Contract::RemoteArgument GetCurrent();
public System.AddIn.Contract.RemoteArgument GetCurrent ();
abstract member GetCurrent : unit -> System.AddIn.Contract.RemoteArgument
Public Function GetCurrent () As RemoteArgument
Retornos
O RemoteArgument na coleção na posição atual do enumerador.The RemoteArgument in the collection at the current position of the enumerator.
Comentários
O valor de retorno de GetCurrent é indefinido em qualquer uma das seguintes condições:The return value of GetCurrent is undefined under any of the following conditions:
O enumerador é posicionado antes do primeiro elemento na coleção, imediatamente depois que o enumerador é criado ou Reset chamado.The enumerator is positioned before the first element in the collection, immediately after the enumerator is created or Reset is called. MoveNextdeve ser chamado para avançar o enumerador para o primeiro elemento da coleção antes de chamar GetCurrent .MoveNext must be called to advance the enumerator to the first element of the collection before calling GetCurrent.
A última chamada para MoveNext retornada
false, que indica o final da coleção.The last call to MoveNext returnedfalse, which indicates the end of the collection.O enumerador é invalidado devido a alterações feitas na coleção, como adicionar, modificar ou excluir elementos.The enumerator is invalidated due to changes made in the collection, such as adding, modifying, or deleting elements.
GetCurrentRetorna o mesmo objeto até que MoveNext seja chamado.GetCurrent returns the same object until MoveNext is called. MoveNextdefine o valor de retorno de GetCurrent para o próximo elemento.MoveNext sets the return value of GetCurrent to the next element.