This documentation is archived and is not being maintained.

IListContract<C> Interface

Represents a generic collection of IContract objects that can be individually accessed by index.

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

generic<typename C>
where C : IContract
public interface class IListContract : ICollectionContract<C>, 
	IEnumerableContract<C>, IContract

Type Parameters

C

The type of objects in the list. C must implement the IContract interface.

The IListContract<C> type exposes the following members.

  NameDescription
Public methodAcquireLifetimeTokenSpecifies that the contract is accessible to a client until the client revokes the contract. (Inherited from IContract.)
Public methodAddAdds an IContract to the ICollectionContract<C>. (Inherited from ICollectionContract<C>.)
Public methodClearRemoves all elements from the ICollectionContract<C>. (Inherited from ICollectionContract<C>.)
Public methodContainsReturns a value that indicates whether the specified IContract is in the ICollectionContract<C>. (Inherited from ICollectionContract<C>.)
Public methodCopyToCopies the entire ICollectionContract<C> to a compatible one-dimensional array, starting at the specified index of the target array. (Inherited from ICollectionContract<C>.)
Public methodGetCountReturns the number of elements contained in the ICollectionContract<C>. (Inherited from ICollectionContract<C>.)
Public methodGetEnumeratorContractReturns an enumerator that iterates through the collection. (Inherited from IEnumerableContract<C>.)
Public methodGetIsReadOnlyReturns a value that indicates whether the ICollectionContract<C> is read-only. (Inherited from ICollectionContract<C>.)
Public methodGetItemReturns the element at the specified index.
Public methodGetRemoteHashCodeReturns a hash code for the IContract. (Inherited from IContract.)
Public methodIndexOfReturns the index of a specific element in the IListContract<C>.
Public methodInsertInserts an element in the IListContract<C> at the specified index.
Public methodQueryContractReturns a contract that is implemented by this contract. (Inherited from IContract.)
Public methodRemoteEqualsIndicates whether the specified contract is equal to this IContract. (Inherited from IContract.)
Public methodRemoteToStringReturns a string representation of the current IContract. (Inherited from IContract.)
Public methodRemoveRemoves the first occurrence of a specific IContract from the ICollectionContract<C>. (Inherited from ICollectionContract<C>.)
Public methodRemoveAtRemoves the element at the specified index.
Public methodRevokeLifetimeTokenSpecifies that the contract is no longer accessible to a client. (Inherited from IContract.)
Public methodSetItemReplaces the element at the specified index.
Top

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: