ICollectionContract<C> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a generic collection of IContract objects.
generic <typename C>
where C : IContractpublic interface class ICollectionContract : System::AddIn::Contract::Collections::IEnumerableContract<C>
public interface ICollectionContract<C> : System.AddIn.Contract.Collections.IEnumerableContract<C> where C : IContract
type ICollectionContract<'C (requires 'C :> IContract)> = interface
interface IEnumerableContract<'C (requires 'C :> IContract)>
interface IContract
Public Interface ICollectionContract(Of C)
Implements IEnumerableContract(Of C)
Type Parameters
- C
The type of elements in the collection. C
must implement the IContract interface.
- Derived
- Implements
Remarks
An ICollectionContract<C> can be dynamically resized.
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>. |
Clear() |
Removes all elements from the ICollectionContract<C>. |
Contains(C) |
Returns a value that indicates whether the specified IContract is in the 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. |
GetCount() |
Returns the number of elements contained in the 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. |
GetRemoteHashCode() |
Returns a hash code for the IContract. (Inherited from IContract) |
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>. |
RevokeLifetimeToken(Int32) |
Specifies that the contract is no longer accessible to a client. (Inherited from IContract) |