ContractAdapter.ViewToContractAdapter(Object) Method

Definition

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

C#
public static System.AddIn.Pipeline.ContractHandle ViewToContractAdapter(object view);

Parameters

view
Object

The host view of an add-in activated by the system from the current application domain.

Returns

A handle to the contract.

Exceptions

view is null.

Remarks

In this scenario, the source entity (a host) has an add-in that wants to be shared by a destination entity (another host).

Use this method to obtain the handle to the contract that was instantiated for the source entity by the add-in system.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1