Επεξεργασία

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


CollectionAdapters Class

Definition

Enables collections to be passed between an add-in and its host application.

public ref class CollectionAdapters abstract sealed
public static class CollectionAdapters
type CollectionAdapters = class
Public Class CollectionAdapters
Inheritance
CollectionAdapters

Remarks

This class provides methods that enable an IList<T> collection to be converted to a IListContract<T> collection. The IListContract<T> collection is passed across the isolation boundary and converted back to an IList<T> collection that the add-in or the host application can use.

Objects in collections must be remotable. For more information about the object types that you can pass, see Contracts, Views, and Adapters.

Methods

ToIList<T>(IListContract<T>)

Converts the specified IListContract<T> collection to an IList<T> collection.

ToIList<TContract,TView>(IListContract<TContract>, Converter<TContract,TView>, Converter<TView,TContract>)

Converts a specified IListContract<T> collection to an IList<T> collection by using converter adapters.

ToIListContract<T>(IList<T>)

Converts a specified IList<T> collection to an IListContract<T> collection.

ToIListContract<TView,TContract>(IList<TView>, Converter<TView,TContract>, Converter<TContract,TView>)

Converts a specified IList<T> collection to an IListContract<T> collection by using converter adapters.

Applies to

See also