Redigera

Dela via


IRemoteObjectContract Interface

Definition

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

public interface class IRemoteObjectContract : System::AddIn::Contract::IContract
public interface IRemoteObjectContract : System.AddIn.Contract.IContract
type IRemoteObjectContract = interface
    interface IContract
Public Interface IRemoteObjectContract
Implements IContract
Derived
Implements

Remarks

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.

Methods

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.

QueryContract(String)

Returns a contract that is implemented by this contract.

(Inherited from IContract)
RemoteCast(String)

Casts the object identified by the current IRemoteObjectContract to a specified type.

RemoteEquals(IContract)

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(Int32)

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

(Inherited from IContract)

Applies to