IArrayContract<C> Interface

 

Represents a generic array of IContract objects.

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

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

Type Parameters

C

The type of elements in the array. 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_pubmethodGetCount()

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

System_CAPS_pubmethodGetEnumeratorContract()

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

System_CAPS_pubmethodGetItem(Int32)

Returns the element at the specified index.

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_pubmethodRevokeLifetimeToken(Int32)

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

System_CAPS_pubmethodSetItem(Int32, C)

Replaces the element at the specified index with the specified IContract.

Use an IArrayContract<C> to pass an array of IContract objects between contracts by reference.

An IArrayContract<C> does not dynamically resize itself.

.NET Framework
Available since 3.5
Return to top
Show: