ICollectionContract<C> ICollectionContract<C> ICollectionContract<C> ICollectionContract<C> Interface

Definition

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)

Type Parameters

C

The type of elements in the collection. C must implement the IContract interface.

Derived
Implements

Remarks

An ICollectionContract<C> can be dynamically resized.

Methods

AcquireLifetimeToken() AcquireLifetimeToken() AcquireLifetimeToken() AcquireLifetimeToken()

Specifies that the contract is accessible to a client until the client revokes the contract.

(Inherited from IContract)
Add(C) Add(C) Add(C) Add(C)

Adds an IContract to the ICollectionContract<C>.

Clear() Clear() Clear() Clear()

Removes all elements from the ICollectionContract<C>.

Contains(C) Contains(C) Contains(C) Contains(C)

Returns a value that indicates whether the specified IContract is in the ICollectionContract<C>.

CopyTo(C[], Int32) CopyTo(C[], Int32) CopyTo(C[], Int32) CopyTo(C[], Int32)

Copies the entire ICollectionContract<C> to a compatible one-dimensional array, starting at the specified index of the target array.

GetCount() GetCount() GetCount() GetCount()

Returns the number of elements contained in the ICollectionContract<C>.

GetEnumeratorContract() GetEnumeratorContract() GetEnumeratorContract() GetEnumeratorContract()

Returns an enumerator that iterates through the collection.

(Inherited from IEnumerableContract<C>)
GetIsReadOnly() GetIsReadOnly() GetIsReadOnly() GetIsReadOnly()

Returns a value that indicates whether the ICollectionContract<C> is read-only.

GetRemoteHashCode() GetRemoteHashCode() GetRemoteHashCode() GetRemoteHashCode()

Returns a hash code for the IContract.

(Inherited from IContract)
QueryContract(String) QueryContract(String) QueryContract(String) QueryContract(String)

Returns a contract that is implemented by this contract.

(Inherited from IContract)
RemoteEquals(IContract) RemoteEquals(IContract) RemoteEquals(IContract) RemoteEquals(IContract)

Indicates whether the specified contract is equal to this IContract.

(Inherited from IContract)
RemoteToString() RemoteToString() RemoteToString() RemoteToString()

Returns a string representation of the current IContract.

(Inherited from IContract)
Remove(C) Remove(C) Remove(C) Remove(C)

Removes the first occurrence of a specific IContract from the ICollectionContract<C>.

RevokeLifetimeToken(Int32) RevokeLifetimeToken(Int32) RevokeLifetimeToken(Int32) RevokeLifetimeToken(Int32)

Specifies that the contract is no longer accessible to a client.

(Inherited from IContract)

Applies to