ContractHandle.ContractOwnsAppDomain(IContract, AppDomain) 方法

定义

确定指定的协定是否拥有应用程序域。

public:
 static bool ContractOwnsAppDomain(System::AddIn::Contract::IContract ^ contract, AppDomain ^ domain);
public static bool ContractOwnsAppDomain (System.AddIn.Contract.IContract contract, AppDomain domain);
static member ContractOwnsAppDomain : System.AddIn.Contract.IContract * AppDomain -> bool
Public Shared Function ContractOwnsAppDomain (contract As IContract, domain As AppDomain) As Boolean

参数

contract
IContract

要检查的协定。

domain
AppDomain

要检查的应用程序域。

返回

如果协定拥有应用程序域,则为 true;否则为 false

例外

contractdomainnull

适用于