ContractAdapter.ViewToContractAdapter(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the handle to the contract for a provided host view of an add-in.
public:
static System::AddIn::Pipeline::ContractHandle ^ ViewToContractAdapter(System::Object ^ view);
public static System.AddIn.Pipeline.ContractHandle ViewToContractAdapter (object view);
static member ViewToContractAdapter : obj -> System.AddIn.Pipeline.ContractHandle
Public Shared Function ViewToContractAdapter (view As Object) As ContractHandle
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.