GetProc02 Code Samples
Here are the code samples for the GetProc02 sample cmdlet. This is the Get-Process
cmdlet sample described in Adding Parameters that Process Command-Line Input. This Get-Process
cmdlet retrieves processes based on their name, and then displays information about the processes at the command line.
Note
You can download the C# source file (getproc02.cs) for this Get-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# | GetProc02 (C#) Sample Code |
VB.NET | GetProc02 (VB.NET) Sample Code |
See Also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈