ICollectionContract<C> Interface

Definição

Representa uma coleção genérica de objetos IContract.Represents a generic collection of IContract objects.

generic <typename C>
 where C : IContractpublic interface class ICollectionContract : System::AddIn::Contract::Collections::IEnumerableContract<C>
public interface ICollectionContract<C> : System.AddIn.Contract.Collections.IEnumerableContract<C> where C : IContract
type ICollectionContract<'C (requires 'C :> IContract)> = interface
    interface IEnumerableContract<'C (requires 'C :> IContract)>
    interface IContract
Public Interface ICollectionContract(Of C)
Implements IEnumerableContract(Of C)

Parâmetros de tipo

C

O tipo dos elementos na coleção.The type of elements in the collection. C deve implementar a IContract interface.C must implement the IContract interface.

Derivado
Implementações

Comentários

Um ICollectionContract<C> pode ser redimensionado dinamicamente.An ICollectionContract<C> can be dynamically resized.

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>.

Clear()

Remove todos os elementos do ICollectionContract<C>.Removes all elements from the 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>.

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.

GetCount()

Retorna o número de elementos contidos no ICollectionContract<C>.Returns the number of elements contained in the 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.

GetRemoteHashCode()

Retorna um código hash para este IContract.Returns a hash code for the IContract.

(Herdado de IContract)
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>.

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)

Aplica-se a