StopProcessSample04 Code Samples
Here are the code samples for the StopProc00 sample cmdlet. This is the Stop-Process
cmdlet sample described in Adding Parameter Sets to a Cmdlet. The Stop-Process
cmdlet is designed to stop processes that are retrieved using the Get-Proc cmdlet (described in Creating Your First Cmdlet).
Note
You can download the C# (stopprocesssample04.cs) and VB.NET (stopprocesssample04.vb) for this Stop-Proc cmdlet using the Microsoft Windows Software Development Kit for Windows Vista and .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 |
---|---|
C# | StopProc04 (C#) Sample Code |
VB.NET | StopProc04 (VB.NET) Sample Code |
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for