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_DeleteDatafromIsolatedStorage_snippet_142538_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  1KB  |  32 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>Delete File from Isolated Storage</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Deletes file from isolated storage.</Description>
  8.       <Shortcut>appIsoDel</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Imports>
  12.         <Import>
  13.           <Namespace>System.IO.IsolatedStorage</Namespace>
  14.         </Import>
  15.         <Import>
  16.           <Namespace>Microsoft.VisualBasic</Namespace>
  17.         </Import>
  18.       </Imports>
  19.       <Declarations>
  20.         <Literal>
  21.           <ID>pathToFile</ID>
  22.           <Type>String</Type>
  23.           <ToolTip>The full path to file in isolated storage.</ToolTip>
  24.           <Default>"FullPath\FileName.txt"</Default>
  25.         </Literal>
  26.       </Declarations>
  27.       <Code Language="VB" Kind="method body"><![CDATA[        Dim isolatedStorage As IsolatedStorageFile
  28.         isolatedStorage = IsolatedStorageFile.GetStore(IsolatedStorageScope.User Or IsolatedStorageScope.Assembly, Nothing, Nothing)
  29.         isolatedStorage.DeleteFile($pathToFile$)]]></Code>
  30.     </Snippet>
  31.   </CodeSnippet>
  32. </CodeSnippets>