Breyta

Deila með


ContractBase Class

Definition

Provides a default implementation of IContract members.

public ref class ContractBase : MarshalByRefObject, System::AddIn::Contract::IContract, System::Runtime::Remoting::Lifetime::ISponsor
public class ContractBase : MarshalByRefObject, System.AddIn.Contract.IContract, System.Runtime.Remoting.Lifetime.ISponsor
type ContractBase = class
    inherit MarshalByRefObject
    interface IContract
    interface ISponsor
Public Class ContractBase
Inherits MarshalByRefObject
Implements IContract, ISponsor
Inheritance
ContractBase
Implements

Remarks

Contracts define the types and methods used by the host and the add-in. All contracts must derive from IContract. This class provides the default implementation of IContract members.

Constructors

ContractBase()

Initializes a new instance of the ContractBase class.

Methods

AcquireLifetimeToken()

Obtains a lifetime token.

CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetRemoteHashCode()

Gets the hash code for the current ContractBase object.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
OnFinalRevoke()

When overridden in an add-in-side adapter, releases native resources held by the adapter.

QueryContract(String)

Reflects over the instance of a contract and returns the this pointer if the current object implements that contract.

RemoteEquals(IContract)

Compares an object with a remote object for equality.

RemoteToString()

Gets a string that identifies a remote object.

Renewal(ILease)

Requests a sponsoring client to renew the lease for the specified object.

RevokeLifetimeToken(Int32)

Removes the specified token from the list of outstanding lifetime tokens.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also