Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 633 Bytes

File metadata and controls

19 lines (14 loc) · 633 Bytes
description RunSpace09 Code Sample
ms.date 09/13/2016
ms.topic reference
title RunSpace09 Code Sample

RunSpace09 Code Sample

This sample application creates and opens a runspace, creates and asynchronously invokes a pipeline, and then uses pipeline events to process the script asynchronously. The script that is run by this application creates the integers 1 through 10 in 0.5-second intervals (500 ms).

Code Sample

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

See Also

Windows PowerShell SDK