Επεξεργασία

Κοινή χρήση μέσω


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

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

(Inherited from IContract)
Add(C)

Adds an IContract to the ICollectionContract<C>.

(Inherited from ICollectionContract<C>)
Clear()

Removes all elements from the ICollectionContract<C>.

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

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

(Inherited from ICollectionContract<C>)
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()

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

(Inherited from ICollectionContract<C>)
GetEnumeratorContract()

Returns an enumerator that iterates through the collection.

(Inherited from IEnumerableContract<C>)
GetIsReadOnly()

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

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

Returns the element at the specified index.

GetRemoteHashCode()

Returns a hash code for the IContract.

(Inherited from IContract)
IndexOf(C)

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

Insert(Int32, C)

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

QueryContract(String)

Returns a contract that is implemented by this contract.

(Inherited from IContract)
RemoteEquals(IContract)

Indicates whether the specified contract is equal to this IContract.

(Inherited from IContract)
RemoteToString()

Returns a string representation of the current IContract.

(Inherited from IContract)
Remove(C)

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

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

Removes the element at the specified index.

RevokeLifetimeToken(Int32)

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

(Inherited from IContract)
SetItem(Int32, C)

Replaces the element at the specified index.

Applies to