ICollectionContract<C> Interface

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents a generic collection of IContract objects.

Namespace:   System.AddIn.Contract.Collections
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)

public interface ICollectionContract<C> : IEnumerableContract<C>, 
	IContract
where C : IContract

Type Parameters

C

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

NameDescription
System_CAPS_pubmethodAcquireLifetimeToken()

Specifies that the contract is accessible to a client until the client revokes the contract.(Inherited from IContract.)

System_CAPS_pubmethodAdd(C)

Adds an IContract to the ICollectionContract<C>.

System_CAPS_pubmethodClear()

Removes all elements from the ICollectionContract<C>.

System_CAPS_pubmethodContains(C)

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

System_CAPS_pubmethodCopyTo(C[], Int32)

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

System_CAPS_pubmethodGetCount()

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

System_CAPS_pubmethodGetEnumeratorContract()

Returns an enumerator that iterates through the collection.(Inherited from IEnumerableContract<C>.)

System_CAPS_pubmethodGetIsReadOnly()

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

System_CAPS_pubmethodGetRemoteHashCode()

Returns a hash code for the IContract.(Inherited from IContract.)

System_CAPS_pubmethodQueryContract(String)

Returns a contract that is implemented by this contract.(Inherited from IContract.)

System_CAPS_pubmethodRemoteEquals(IContract)

Indicates whether the specified contract is equal to this IContract.(Inherited from IContract.)

System_CAPS_pubmethodRemoteToString()

Returns a string representation of the current IContract.(Inherited from IContract.)

System_CAPS_pubmethodRemove(C)

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

System_CAPS_pubmethodRevokeLifetimeToken(Int32)

Specifies that the contract is no longer accessible to a client.(Inherited from IContract.)

An ICollectionContract<C> can be dynamically resized.

.NET Framework
Available since 3.5
Return to top
Show: