AddInEnvironment(AppDomain) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.