IListContract<C> IListContract<C> IListContract<C> IListContract<C> Interface

Definition

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

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

Type Parameters

C

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

Implements

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

(Inherited from ICollectionContract<C>)
Clear() Clear() Clear() Clear()

Removes all elements from the ICollectionContract<C>.

(Inherited from ICollectionContract<C>)
Contains(C) Contains(C) Contains(C) Contains(C)

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

(Inherited from 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.

(Inherited from ICollectionContract<C>)
GetCount() GetCount() GetCount() GetCount()

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

(Inherited from 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.

(Inherited from ICollectionContract<C>)
GetItem(Int32) GetItem(Int32) GetItem(Int32) GetItem(Int32)

Returns the element at the specified index.

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

Returns a hash code for the IContract.

(Inherited from IContract)
IndexOf(C) IndexOf(C) IndexOf(C) IndexOf(C)

Returns the index of a specific element in the IListContract<C>.

Insert(Int32, C) Insert(Int32, C) Insert(Int32, C) Insert(Int32, C)

Inserts an element in the IListContract<C> at the specified index.

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

(Inherited from ICollectionContract<C>)
RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

Removes the element at the specified index.

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

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

(Inherited from IContract)
SetItem(Int32, C) SetItem(Int32, C) SetItem(Int32, C) SetItem(Int32, C)

Replaces the element at the specified index.

Applies to