Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 1104

db4o-doc-7.4-2.fc13.i686.rpm

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Isolated Storage Example</title>
    <link rel="stylesheet" type="text/css" href="../../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>Isolated Storage Example</h1><script>
//We attach this function to a browser object as a variable so that if multiple of these blocks are
//present on the same page, then they will simply over-write eachother with the same function instead
//of generating a naming collision.
window.WikiCodeFormattingCopyToClipboard = function copyToClipboard(sID){
	var sContent = document.getElementById(sID).innerText;
	if( window.clipboardData && clipboardData.setData )
	{
		clipboardData.setData("Text", sContent);
	}
	else
	{
		alert("You must enable javascript access to your clipboard for this feature to work. Please referr to your browser documentation or Google search for instructions.");
	}
}
</script>
<p><font color="#990000">This topic applies to .NET version only</font></p>
<p>In order to use our special
<a href="isolatedstoragefileadapter.html" class="wikiLink">IsolatedStorageFileAdapter</a> the following configuration method should be
called. </p>

<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">IsolatedStorageExample.cs: <span class="fscMemberName">Configure</span></span></div><div class="fscCode"><pre ID="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> IConfiguration Configure()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Open_Text').style.display='inline';"/>        </span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_Configure_256_74_50_277_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IConfiguration configuration </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.NewConfiguration();
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            configuration.MessageLevel(</span><span style="color: #800080;">1</span><span style="color: #000000;">);
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            configuration.Io(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> IsolatedStorageFileAdapter());
</span><span style="color: #008080;">6</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> configuration;
</span><span style="color: #008080;">7</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">IsolatedStorageExample.vb: <span class="fscMemberName">Configure</span></span></div><div class="fscCode"><pre ID="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function Configure()</span><span id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_Configure_394_74_15_293_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> Configure() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IConfiguration
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> configuration </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IConfiguration </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.NewConfiguration()
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            configuration.MessageLevel(</span><span style="color: #800080;">1</span><span style="color: #000000;">)
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            configuration.Io(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> IsolatedStorageFileAdapter())
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> configuration
</span><span style="color: #008080;">6</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Function</span></span></div></pre></div></div>

</span>

<p>In this example we will use
<a href="../../tuning/debugging_db4o.html" class="wikiLink">debug message level</a> = 1 to see what is
happening in the console.</p>

<p>Let's try to save some objects and retrieve them. Remember,
that the path in the Isolated Storage is not the path on the file system. For
simplicity you can specify the database file with only the file name. For more
information about creating directory structure in the Isolated Storage, please
refer to the appropriate documentation. </p>

<p>Run the following examples and check the output in the
console to see how the <code>IsolatedStorageFileAdapter</code> works:</p>

<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">IsolatedStorageExample.cs: <span class="fscMemberName">TestStore</span></span></div><div class="fscCode"><pre ID="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> TestStore()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Open_Text').style.display='inline';"/>        </span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_40_409_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IObjectContainer db </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenFile(Configure(), Db4oFileName);
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">try</span><span style="color: #000000;">
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Open_Text').style.display='inline';"/>            </span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_153_323_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                Pilot pilot </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Michael Schumacher</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">);
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                db.Set(pilot);
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">New pilot added</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">);
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">finally</span><span style="color: #000000;">
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Open_Text').style.display='inline';"/>            </span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestStore_1159_74_356_399_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                db.Close();
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">IsolatedStorageExample.cs: <span class="fscMemberName">TestRetrieve</span></span></div><div class="fscCode"><pre ID="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> TestRetrieve()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Open_Text').style.display='inline';"/>        </span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_43_352_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IObjectContainer db </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenFile(Configure(), Db4oFileName);
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">try</span><span style="color: #000000;">
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Open_Text').style.display='inline';"/>            </span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_156_266_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                IObjectSet result </span><span style="color: #000000;">=</span><span style="color: #000000;"> db.Get(</span><span style="color: #0000FF;">typeof</span><span style="color: #000000;">(Pilot));
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                ListResult(result);
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">finally</span><span style="color: #000000;">
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Open_Text').style.display='inline';"/>            </span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestRetrieve_1237_77_299_342_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                db.Close();
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">IsolatedStorageExample.vb: <span class="fscMemberName">TestStore</span></span></div><div class="fscCode"><pre ID="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub TestStore()</span><span id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestStore_1378_74_15_371_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> TestStore()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> db </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenFile(Configure(), Db4oFileName)
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> pilot </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Michael Schumacher</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">)
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                db.[</span><span style="color: #0000FF;">Set</span><span style="color: #000000;">](pilot)
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">New pilot added</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">)
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Finally</span><span style="color: #000000;">
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                db.Close()
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">IsolatedStorageExample.vb: <span class="fscMemberName">TestRetrieve</span></span></div><div class="fscCode"><pre ID="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub TestRetrieve()</span><span id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestRetrieve_1456_77_15_324_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> TestRetrieve()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> db </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenFile(Configure(), Db4oFileName)
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> result </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectSet </span><span style="color: #000000;">=</span><span style="color: #000000;"> db.[</span><span style="color: #0000FF;">Get</span><span style="color: #000000;">](</span><span style="color: #0000FF;">GetType</span><span style="color: #000000;">(Pilot))
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                ListResult(result)
</span><span style="color: #008080;">6</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Finally</span><span style="color: #000000;">
</span><span style="color: #008080;">7</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                db.Close()
</span><span style="color: #008080;">8</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">9</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>
</span>

<p>There is one more thing to remember: delete file operation
does not belong to db4o API, so if we need to delete the database from within
the application we will need to use Isolated Storage functions:</p>

<span name="cs_wiki_filter" csw_filters="cs">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">IsolatedStorageExample.cs: <span class="fscMemberName">TestDelete</span></span></div><div class="fscCode"><pre ID="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> TestDelete()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Open_Text').style.display='inline';"/>        </span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..IsolatedStorageCS.ZipsIsolatedStorageExample.Cs_IsolatedStorageExample.Cs_TestDelete_1808_75_41_179_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IsolatedStorageFile isf </span><span style="color: #000000;">=</span><span style="color: #000000;"> IsolatedStorageFile.GetUserStoreForAssembly();
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            isf.DeleteFile(Db4oFileName);
</span><span style="color: #008080;">5</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>

</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">IsolatedStorageExample.vb: <span class="fscMemberName">TestDelete</span></span></div><div class="fscCode"><pre ID="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">1</span><img id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Open_Text').style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Closed_Image').style.display='inline'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Closed_Text').style.display='inline';"/><img id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Closed_Text').style.display='none'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Open_Image').style.display='inline'; document.getElementById('..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub TestDelete()</span><span id="..IsolatedStorageVB.ZipsIsolatedStorageExample.Vb_IsolatedStorageExample.Vb_TestDelete_1947_75_15_179_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> TestDelete()
</span><span style="color: #008080;">2</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> isf </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IsolatedStorageFile </span><span style="color: #000000;">=</span><span style="color: #000000;"> IsolatedStorageFile.GetUserStoreForAssembly()
</span><span style="color: #008080;">3</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            isf.DeleteFile(Db4oFileName)
</span><span style="color: #008080;">4</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>

</span></div>
    </div>
    <div id="footer">
					This revision (2) was last Modified 2007-08-19T13:36:31 by Tetyana.
				</div>
  </body>
</html>