home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_UploadAFile_snippet_142598_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  1KB  |  36 lines

  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>Upload a File Using My.Computer.Network</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Uploads a local file to the Internet.</Description>
  8.       <Shortcut>conUpload</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Imports>
  12.         <Import>
  13.           <Namespace>System</Namespace>
  14.         </Import>
  15.         <Import>
  16.           <Namespace>Microsoft.VisualBasic</Namespace>
  17.         </Import>
  18.       </Imports>
  19.       <Declarations>
  20.         <Literal>
  21.           <ID>address</ID>
  22.           <Type>String</Type>
  23.           <ToolTip>The address of the upload script or destination filename</ToolTip>
  24.           <Default>"http://www.someserver.com/upload.aspx"</Default>
  25.         </Literal>
  26.         <Literal>
  27.           <ID>localFile</ID>
  28.           <Type>String</Type>
  29.           <ToolTip>The path of the file to upload.</ToolTip>
  30.           <Default>"c:\File.txt"</Default>
  31.         </Literal>
  32.       </Declarations>
  33.       <Code Language="VB" Kind="method body"><![CDATA[My.Computer.Network.UploadFile($localFile$, $address$)]]></Code>
  34.     </Snippet>
  35.   </CodeSnippet>
  36. </CodeSnippets>