Defines a contract that components can use to access a delegate across application domain and process boundaries.
Assembly: System.AddIn.Contract (in System.AddIn.Contract.dll)
Thetype exposes the following members.
|AcquireLifetimeToken||Specifies that the contract is accessible to a client until the client revokes the contract. (Inherited from IContract.)|
|GetRemoteHashCode||Returns a hash code for the IContract. (Inherited from IContract.)|
|GetRemoteType||Returns an IRemoteTypeContract that specifies the type of the current IRemoteObjectContract. (Inherited from IRemoteObjectContract.)|
|InvokeDelegate||Invokes the delegate that this identifies.|
|QueryContract||Returns a contract that is implemented by this contract. (Inherited from IContract.)|
|RemoteCast||Casts the object identified by the current IRemoteObjectContract to a specified type. (Inherited from IRemoteObjectContract.)|
|RemoteEquals||Indicates whether the specified contract is equal to this IContract. (Inherited from IContract.)|
|RemoteToString||Returns a string representation of the current IContract. (Inherited from IContract.)|
|RevokeLifetimeToken||Specifies that the contract is no longer accessible to a client. (Inherited from IContract.)|
To invoke a delegate, use the InvokeDelegate method.
To add a delegate to an event or remove a delegate from an event, call the Invoke method of the IRemoteMethodInfoContract that is returned by GetAddMethod or GetRemoveMethod. Pass an that represents the delegate to the parameters parameter of Invoke.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.