This documentation is archived and is not being maintained.

IListContract<T> Interface

Represents a generic list of types that are defined by a contract and are used to pass collections of that contract type between a host and an add-in.

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

public interface IListContract<T> : IContract

Type Parameters


The contract type of the objects in the list.

The CollectionAdapters class uses an IListContract<T> interface to pass collections, in both directions, between the host and the add-in. It is recommended that you use the CollectionAdapters class instead of using this class directly in your code. For an example, see Walkthrough: Passing Collections Between Hosts and Add-Ins.

This class can be used to pass objects by reference between application domains because the objects are not serialized.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5