ContractHandle.ContractOwnsAppDomain Method (IContract, AppDomain)

 
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.

Determines whether an application domain is owned by the specified contract.

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

public static bool ContractOwnsAppDomain(
	IContract contract,
	AppDomain domain
)

Parameters

contract
Type: System.AddIn.Contract.IContract

The contract to check.

domain
Type: System.AppDomain

The application domain to check.

Return Value

Type: System.Boolean

true if the contract owns the application domain; otherwise, false.

Exception Condition
ArgumentNullException

contract or domain is null.

.NET Framework
Available since 3.5
Return to top
Show: