ContractBase Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides a default implementation of IContract members.

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

System.Object
  System.MarshalByRefObject
    System.AddIn.Pipeline.ContractBase

public class ContractBase : MarshalByRefObject, IContract, ISponsor

NameDescription
System_CAPS_pubmethodContractBase()

Initializes a new instance of the ContractBase class.

NameDescription
System_CAPS_pubmethodAcquireLifetimeToken()

Obtains a lifetime token.

System_CAPS_pubmethodCreateObjRef(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.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetRemoteHashCode()

Gets the hash code for the current ContractBase object.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodOnFinalRevoke()

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

System_CAPS_pubmethodQueryContract(String)

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

System_CAPS_pubmethodRemoteEquals(IContract)

Compares an object with a remote object for equality.

System_CAPS_pubmethodRemoteToString()

Gets a string that identifies a remote object.

System_CAPS_pubmethodRenewal(ILease)

This API supports the product infrastructure and is not intended to be used directly from your code. Requests a sponsoring client to renew the lease for the specified object.

System_CAPS_pubmethodRevokeLifetimeToken(Int32)

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

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 3.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: