Snippets/Workflow/Workflow foreach-parallel.ps1.snippets.ps1xml

<?xml version='1.0' encoding='utf-8' ?>
    <Snippets xmlns='http://schemas.microsoft.com/PowerShell/Snippets'>
        <Snippet Version='1.0.0'>
            <Header>
                <Title>Workflow foreach-parallel.ps1</Title>
                <Description></Description>
                <Shortcut></Shortcut>
                <Keywords>ScriptBlock,Editor</Keywords>
                <Author>Tobias</Author>
                <DifficultyLevel>1</DifficultyLevel>
                <Example>False</Example>
                <SnippetTypes>
                    <SnippetType>Expansion</SnippetType>
                    <SnippetType>SurroundsWith</SnippetType>
                </SnippetTypes>
                <Requirements>
                    <MinimumPowerShellVersion>4</MinimumPowerShellVersion>
                    <RequiredModules></RequiredModules>
                    <AdminPrivileges>False</AdminPrivileges>
                    <ProcessorArchitecture>x86,x64</ProcessorArchitecture>
                </Requirements>
            </Header>
            <Declarations>
                <Literal>
                   <ID><![CDATA[29;10;1]]></ID>
                   <Default></Default>
                   <ToolTip><![CDATA[Variable name for collection]]></ToolTip>
                   <ToolTipStatusbar><![CDATA[Variable name for collection]]></ToolTipStatusbar>
                </Literal>
                <Literal>
                   <ID><![CDATA[47;5;0;19;5;47;5]]></ID>
                   <Default></Default>
                   <ToolTip><![CDATA[Content]]></ToolTip>
                   <ToolTipStatusbar><![CDATA[Content]]></ToolTipStatusbar>
                   <EncloseSelection>true</EncloseSelection>
                </Literal>
            </Declarations>
 
 
            <Code>
                <Script Language='PowerShell' CaretOffset='57'>
                    <![CDATA[foreach -parallel ($item in $collection)
{
  $item
}
]]>
                </Script>
            </Code>
 
    </Snippet>
</Snippets>