csharp System.AddIn.Hosting.AddInProcess类(方法)实例源码

下面列出了csharp System.AddIn.Hosting.AddInProcess 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.AddIn.Hostin   
// Create an external process.
AddInProcess pExternal = new AddInProcess();

// Activate an add-in in the external process
// with a full trust security level.
Calculator CalcAddIn4 =
    selectedToken.Activate<Calculator>(pExternal,
    AddInSecurityLevel.FullTrust);

// Show that the add-in is an external process
// by verifying that it is not in the current (host's) process.
AddInController AddinCtl = AddInController.GetAddInController(CalcAddIn4);
Console.WriteLine("Add-in in host's process: {0}",
    AddinCtl.AddInEnvironment.Process.IsCurrentProcess);


问题


面经


文章

微信
公众号

扫码关注公众号