我试图使用runspaceConfiguration.AddPSSnapin()方法添加exchange SnapIn Microsoft.Exchange.Management.Powershell.E2010,但是这一行失败了,给出了:
没有为Powershell版本4注册管理单元。一个快速的Get-PSSnapIn -registered显示已经安装了SnapIn,但是注册到了PS版本1。在regEdit中,我找到了snapIn for PowerShell v
with name " + e.Name + " has been renamed. "); }
}private void FolderWatcherTest_Created(object sender, System.IO.FileSystemEventArgsname " + e.Name + " has been rename