StopProc Tutorial
This section provides a tutorial for creating the Stop-Proc cmdlet, which is very similar to the Stop-Process cmdlet provided by Windows PowerShell. This tutorial provides fragments of code that illustrate how cmdlets are implemented, and an explanation of the code.
Topics in this Tutorial
The topics in this tutorial are designed to be read sequentially, with each topic building on what was discussed in the previous topic.
Creating a Cmdlet that Modifies the System: This section describes how to create a cmdlet that supports system modifications, such as stopping a process running on the computer.
Adding User Messages to Your Cmdlet: This section describes how to add the ability to write user messages, debug messages, warning messages, and progress information to your cmdlet.
Adding Aliases, Wildcard Expansion, and Help to Cmdlet Parameters: This section describes how to create a cmdlet that supports parameter aliases, Help, and wildcard expansion.
Adding Parameter Sets to Cmdlets: This section describes how to add parameter sets to a cmdlet. Parameter sets allow the cmdlet to operate differently based on what parameters are specified by the user.
See Also
PowerShell
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기