IContract Interface

IContract Interface

 

Represents the base interface for all contracts that are used for communication between components that are updated independently.

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

type IContract = interface end

NameDescription
System_CAPS_pubmethodAcquireLifetimeToken()

Specifies that the contract is accessible to a client until the client revokes the contract.

System_CAPS_pubmethodGetRemoteHashCode()

Returns a hash code for the IContract.

System_CAPS_pubmethodQueryContract(String)

Returns a contract that is implemented by this contract.

System_CAPS_pubmethodRemoteEquals(IContract)

Indicates whether the specified contract is equal to this IContract.

System_CAPS_pubmethodRemoteToString()

Returns a string representation of the current IContract.

System_CAPS_pubmethodRevokeLifetimeToken(Int32)

Specifies that the contract is no longer accessible to a client.

The IContract interface defines a contract that independently updated components, such as an application and an add-in, can use to communicate. Components can use IContract to communicate across process or application domain boundaries, or to communicate with other components in the same process or application domain. IContract serves a similar purpose for components created using the .NET Framework as the IUnknown interface serves for components created using COM. To determine whether an object implements a particular contract, use the QueryContract method.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft