<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>從隔離儲存區刪除檔案</Title>
      <Author>Microsoft Corporation</Author>
      <Description>從隔離儲存區刪除檔案。</Description>
      <Shortcut>appIsoDel</Shortcut>
    </Header>
    <Snippet>
      <Imports>
        <Import>
          <Namespace>System.IO.IsolatedStorage</Namespace>
        </Import>
        <Import>
          <Namespace>Microsoft.VisualBasic</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Object>
          <ID>varName</ID>
          <Type>String</Type>
          <ToolTip>隔離儲存區的變數名稱。</ToolTip>
          <Default>isolatedStorage</Default>
        </Object>
        <Literal>
          <ID>pathToFile</ID>
          <Type>String</Type>
          <ToolTip>隔離儲存區中檔案的完整路徑。</ToolTip>
          <Default>"FullPath\FileName.txt"</Default>
        </Literal>
      </Declarations>
      <Code Language="VB" Kind="method body"><![CDATA[
        Dim $varName$ = IsolatedStorageFile.GetStore(IsolatedStorageScope.User Or IsolatedStorageScope.Assembly Or IsolatedStorageScope.Domain, Nothing, Nothing)
        $varName$.DeleteFile($pathToFile$)]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
