Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 845 Bytes

getproc02-csharp-sample-code.md

File metadata and controls

21 lines (16 loc) · 845 Bytes
description ms.date ms.topic title
GetProc02 (C#) Sample Code
09/13/2016
reference
GetProc02 (C#) Sample Code

GetProc02 (C#) Sample Code

The following code shows the implementation of a Get-Process cmdlet that accepts command-line input. Notice that this implementation defines a Name parameter to allow command-line input, and it uses the WriteObject(System.Object,System.Boolean) method as the output mechanism for sending output objects to the pipeline.

Code Sample

:::code language="csharp" source="~/../powershell-sdk-samples/SDK-2.0/csharp/GetProcessSample02/GetProcessSample02.cs" range="11-76":::

See Also

Windows PowerShell SDK