通过


ContractBase 类

定义

提供成员的默认实现 IContract

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
继承
ContractBase
实现

注解

协定定义主机和外接程序使用的类型和方法。 所有协定都必须派生自 IContract。 此类提供成员的默认实现 IContract

构造函数

名称 说明
ContractBase()

初始化 ContractBase 类的新实例。

方法

名称 说明
AcquireLifetimeToken()

获取生存期令牌。

CreateObjRef(Type)

创建一个对象,其中包含生成用于与远程对象通信的代理所需的所有相关信息。

(继承自 MarshalByRefObject)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetLifetimeService()
已过时.

检索控制此实例的生存期策略的当前生存期服务对象。

(继承自 MarshalByRefObject)
GetRemoteHashCode()

获取当前 ContractBase 对象的哈希代码。

GetType()

获取当前实例的 Type

(继承自 Object)
InitializeLifetimeService()
已过时.

获取生存期服务对象来控制此实例的生存期策略。

(继承自 MarshalByRefObject)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。

(继承自 MarshalByRefObject)
OnFinalRevoke()

在加载项端适配器中重写时,释放适配器持有的本机资源。

QueryContract(String)

反映协定的实例,如果当前对象实现该协定,则返回 this 指针。

RemoteEquals(IContract)

比较对象与远程对象是否相等。

RemoteToString()

获取标识远程对象的字符串。

Renewal(ILease)

请求发起方客户端续订指定对象的租约。

RevokeLifetimeToken(Int32)

从未完成的生存期令牌列表中删除指定的令牌。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于