This documentation is archived and is not being maintained.

IRemoteObjectContract Interface

Defines a contract that components can use to access an object across application domain and process boundaries.

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

public interface class IRemoteObjectContract : IContract

The IRemoteObjectContract type exposes the following members.

  NameDescription
Public methodAcquireLifetimeTokenSpecifies that the contract is accessible to a client until the client revokes the contract. (Inherited from IContract.)
Public methodGetRemoteHashCodeReturns a hash code for the IContract. (Inherited from IContract.)
Public methodGetRemoteTypeReturns an IRemoteTypeContract that specifies the type of the current IRemoteObjectContract.
Public methodQueryContractReturns a contract that is implemented by this contract. (Inherited from IContract.)
Public methodRemoteCastCasts the object identified by the current IRemoteObjectContract to a specified type.
Public methodRemoteEqualsIndicates whether the specified contract is equal to this IContract. (Inherited from IContract.)
Public methodRemoteToStringReturns a string representation of the current IContract. (Inherited from IContract.)
Public methodRevokeLifetimeTokenSpecifies that the contract is no longer accessible to a client. (Inherited from IContract.)
Top

When you implement IRemoteObjectContract on a type, components can use the contract to access type information for objects of the type. Components access type information by calling the GetRemoteType method to obtain an IRemoteTypeContract. The IRemoteTypeContract interface defines a contract that components can use to access specific type and member information, and to invoke members.

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: