AddInEnvironment(AppDomain) Constructor

Definition

Initializes a new instance of the AddInEnvironment class.

public:
 AddInEnvironment(AppDomain ^ appDomain);
public AddInEnvironment (AppDomain appDomain);
new System.AddIn.Hosting.AddInEnvironment : AppDomain -> System.AddIn.Hosting.AddInEnvironment
Public Sub New (appDomain As AppDomain)

Parameters

appDomain
AppDomain

The application domain that contains the add-in.

Exceptions

appDomain is null.

Full-trust permission is demanded. A caller in the call chain does not have sufficient permission.

Remarks

If you have access to the application domain that contains the add-in you need, you can use this constructor to obtain the add-in's AddInEnvironment object. Otherwise, you can use the AddInEnvironment property of the AddInController class to obtain the AddInEnvironment object.

Applies to