ContractAdapter Class

ContractAdapter Class

 

Provides methods for sharing and readapting add-ins.

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

System.Object
  System.AddIn.Pipeline.ContractAdapter

public static class ContractAdapter

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticContractToViewAdapter<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.

System_CAPS_pubmethodSystem_CAPS_staticContractToViewAdapter<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.

System_CAPS_pubmethodSystem_CAPS_staticViewToContractAdapter(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.

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft