Simple Function


posted by Richard Giles
02-17-2009

Downloads: 298
File size: 764 B
Views: 805

Embed
Simple Function
  1. <?xml version="1.0"?> 
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
  3.     <CodeSnippet Format="1.0.0"
  4.         <Header> 
  5.             <Title>Simple Function</Title> 
  6.             <Shortcut>func</Shortcut> 
  7.             <Description>Insert a basic function structure</Description> 
  8.             <Author>Dr. Tobias Weltner http://www.powershell.de</Author> 
  9.             <SnippetTypes> 
  10.                 <SnippetType>Expansion</SnippetType> 
  11.             </SnippetTypes> 
  12.         </Header> 
  13.         <Snippet> 
  14.             <Declarations> 
  15.                 <Literal> 
  16.                     <ID>param1</ID> 
  17.                     <ToolTip>Name of your new function</ToolTip> 
  18.                     <Default>MyFunction</Default> 
  19.                 </Literal> 
  20.             </Declarations> 
  21.             <Code Language="PowerShell" Kind="1"><![CDATA[function $param1$ { 
  22.      
  23.  
  24. }]]></Code> 
  25.         </Snippet> 
  26.     </CodeSnippet> 
  27. </CodeSnippets> 
Filed under: ,

Insert a basic function structure

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.