IListContract<C> Interface
Definição
generic <typename C>
where C : IContractpublic interface class IListContract : System::AddIn::Contract::Collections::ICollectionContract<C>, System::AddIn::Contract::Collections::IEnumerableContract<C>
public interface IListContract<C> : System.AddIn.Contract.Collections.ICollectionContract<C>, System.AddIn.Contract.Collections.IEnumerableContract<C> where C : IContract
type IListContract<'C (requires 'C :> IContract)> = interface
interface ICollectionContract<'C (requires 'C :> IContract)>
interface IEnumerableContract<'C (requires 'C :> IContract)>
interface IContract
Public Interface IListContract(Of C)
Implements ICollectionContract(Of C), IEnumerableContract(Of C)
Parâmetros de tipo
- C
O tipo de objetos na lista.The type of objects in the list. C deve implementar a IContract interface.C must implement the IContract interface.
- Implementações
Métodos
| AcquireLifetimeToken() |
Especifica que o contrato está acessível ao cliente até que o cliente o revogue.Specifies that the contract is accessible to a client until the client revokes the contract. (Herdado de IContract) |
| Add(C) |
Adiciona um IContract em uma ICollectionContract<C>.Adds an IContract to the ICollectionContract<C>. (Herdado de ICollectionContract<C>) |
| Clear() |
Remove todos os elementos do ICollectionContract<C>.Removes all elements from the ICollectionContract<C>. (Herdado de ICollectionContract<C>) |
| Contains(C) |
Retorna um valor que indica se o IContract especificado está no ICollectionContract<C>.Returns a value that indicates whether the specified IContract is in the ICollectionContract<C>. (Herdado de ICollectionContract<C>) |
| CopyTo(C[], Int32) |
Copia todo o ICollectionContract<C> para uma matriz unidimensional compatível, iniciando no índice especificado da matriz de destino.Copies the entire ICollectionContract<C> to a compatible one-dimensional array, starting at the specified index of the target array. (Herdado de ICollectionContract<C>) |
| GetCount() |
Retorna o número de elementos contidos no ICollectionContract<C>.Returns the number of elements contained in the ICollectionContract<C>. (Herdado de ICollectionContract<C>) |
| GetEnumeratorContract() |
Retorna um enumerador que itera pela coleção.Returns an enumerator that iterates through the collection. (Herdado de IEnumerableContract<C>) |
| GetIsReadOnly() |
Retorna um valor que indica se o ICollectionContract<C> é somente leitura.Returns a value that indicates whether the ICollectionContract<C> is read-only. (Herdado de ICollectionContract<C>) |
| GetItem(Int32) |
Retorna o elemento no índice especificado.Returns the element at the specified index. |
| GetRemoteHashCode() |
Retorna um código hash para este IContract.Returns a hash code for the IContract. (Herdado de IContract) |
| IndexOf(C) |
Retorna o índice de um elemento específico no IListContract<C>.Returns the index of a specific element in the IListContract<C>. |
| Insert(Int32, C) |
Insere um elemento no IListContract<C> no índice especificado.Inserts an element in the IListContract<C> at the specified index. |
| QueryContract(String) |
Retorna um contrato implementado por este contrato.Returns a contract that is implemented by this contract. (Herdado de IContract) |
| RemoteEquals(IContract) |
Indica se o contrato especificado é igual a este IContract.Indicates whether the specified contract is equal to this IContract. (Herdado de IContract) |
| RemoteToString() |
Retorna uma representação de cadeia de caracteres do IContract atual.Returns a string representation of the current IContract. (Herdado de IContract) |
| Remove(C) |
Remove a primeira ocorrência de um determinado IContract do ICollectionContract<C>.Removes the first occurrence of a specific IContract from the ICollectionContract<C>. (Herdado de ICollectionContract<C>) |
| RemoveAt(Int32) |
Remove o elemento no índice especificado.Removes the element at the specified index. |
| RevokeLifetimeToken(Int32) |
Especifica que o contrato não está mais acessível a um cliente.Specifies that the contract is no longer accessible to a client. (Herdado de IContract) |
| SetItem(Int32, C) |
Substitui o elemento no índice especificado.Replaces the element at the specified index. |