ContractAdapter Class
Provides methods for sharing and readapting add-ins.
Assembly: System.AddIn (in System.AddIn.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | 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. |
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<TView> method.
Available since 3.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

