ContractAdapter Class

Definition

Provides methods for sharing and readapting add-ins.

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

Remarks

You can use this class to share an add-in with another host that does not have the same pipeline to that add-in (particularly, another host that does not have the same host view of the add-in).

If you need to adapt an activated add-in from its host view to the contract, use the ViewToContractAdapter method.

If you have an instance of the contract and need to convert it to the host view, use the ContractToViewAdapter method.

Methods

ContractToViewAdapter<TView>(ContractHandle, PipelineStoreLocation)

Obtains a host view of an add-in if a suitable host-side adapter is found at a location specified by a value from the PipelineStoreLocation enumeration.

ContractToViewAdapter<TView>(ContractHandle, String)

Obtains a host view of an add-in if a suitable host-side adapter is found at a location specified by a path.

ViewToContractAdapter(Object)

Gets the handle to the contract for a provided host view of an add-in.

Applies to