RunSpace04 Code Samples
Here is a code sample for a runspace that uses the System.Management.Automation.Runspaceinvoke class to execute a script that generates a terminating error. The host application is responsible for catching the error and interpreting the error record.
Note
You can download the VB.NET source file (Runspace04.vb) for this runspace using the Windows Software Development Kit for Windows Vista and Microsoft .NET Framework 3.0 Runtime Components. For download instructions, see How to Install Windows PowerShell and Download the Windows PowerShell SDK. The downloaded source files are available in the <PowerShell Samples> directory.
For complete sample code, see the following topics.
Language | Topic |
---|---|
VB.NET | Runspace04 (VB.NET) Code Sample |
See Also
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per