[英]Intercept error messages on VMware vSphere client using PowerCLI for .NET
Is there a way to catch the error messages appearing on the VMware vSphere client using PowerCLI for .NET?有没有办法使用 PowerCLI for .NET 捕获出现在 VMware vSphere 客户端上的错误消息?
I used Project Onyx 2.0 to capture all mouse clicks and obtain code in C#.我使用 Project Onyx 2.0 捕获所有鼠标点击并获取 C# 中的代码。 But if some operation fails, is there a way to print that on the console?
但是如果某些操作失败了,有没有办法在控制台上打印呢?
You can't do that.你不能那样做。 These error messages are notifications and if you want to "catch" them you need to pull them out of the VMware server, with PowerCLI or with a C# program.
这些错误消息是通知,如果您想“捕获”它们,您需要使用 PowerCLI 或 C# 程序将它们从 VMware 服务器中拉出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.