<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="nl"> <head> <!-- Generated by javadoc (version 1.7.0_40) on Tue Oct 15 12:25:31 CEST 2013 --> <title>IsolatedStorageFile</title> <meta name="date" content="2013-10-15"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="IsolatedStorageFile"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/IsolatedStorageFile.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../System/IO/IsolatedStorage/IsolatedStorageException.html" title="class in System.IO.IsolatedStorage"><span class="strong">Prev Class</span></a></li> <li><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html" title="class in System.IO.IsolatedStorage"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?System/IO/IsolatedStorage/IsolatedStorageFile.html" target="_top">Frames</a></li> <li><a href="IsolatedStorageFile.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor_summary">Constr</a> | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor_detail">Constr</a> | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">System.IO.IsolatedStorage</div> <h2 title="Class IsolatedStorageFile" class="title">Class IsolatedStorageFile</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>System.IO.IsolatedStorage.IsolatedStorageFile</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public final class <span class="strong">IsolatedStorageFile</span> extends java.lang.Object</pre> <dl><dt><span class="strong">Author:</span></dt> <dd>Halofreak190</dd></dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#IsolatedStorageFile()">IsolatedStorageFile</a></strong>()</code> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#Close()">Close</a></strong>()</code> <div class="block">Closes a store previously opened with System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(System.IO.IsolatedStorage.IsolatedStorageScope,System.Type,System.Type), System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForAssembly(), or System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForDomain().</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#CopyFile(java.lang.String, java.lang.String, boolean)">CopyFile</a></strong>(java.lang.String sourceFileName, java.lang.String destinationFileName, boolean overwrite)</code> <div class="block">Copies an existing file to a new file, and optionally overwrites an existing file.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#CreateDirectory(java.lang.String)">CreateDirectory</a></strong>(java.lang.String dir)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFileStream</a></code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#CreateFile(java.lang.String)">CreateFile</a></strong>(java.lang.String path)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#DeleteFile(java.lang.String)">DeleteFile</a></strong>(java.lang.String file)</code> <div class="block">Deletes a file in the isolated store.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#FileExists(java.lang.String)">FileExists</a></strong>(java.lang.String path)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#finalize()">finalize</a></strong>()</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFile</a></code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#GetUserStoreForApplication()">GetUserStoreForApplication</a></strong>()</code> <div class="block">Obtains user-scoped isolated storage corresponding to the calling code's application identity.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#MoveDirectory(java.lang.String, java.lang.String)">MoveDirectory</a></strong>(java.lang.String sourceDirectoryName, java.lang.String destinationDirectoryName)</code> <div class="block">Moves a specified directory and its contents to a new location.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#MoveFile(java.lang.String, java.lang.String)">MoveFile</a></strong>(java.lang.String sourceFileName, java.lang.String destinationFileName)</code> <div class="block">Moves a specified file to a new location, and optionally lets you specify a new file name.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFileStream</a></code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#OpenFile(java.lang.String, System.IO.FileMode)">OpenFile</a></strong>(java.lang.String path, <a href="../../../System/IO/FileMode.html" title="enum in System.IO">FileMode</a> mode)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html#Remove()">Remove</a></strong>()</code> <div class="block">Removes the isolated storage scope and all its contents.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.Object</h3> <code>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="IsolatedStorageFile()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>IsolatedStorageFile</h4> <pre>public IsolatedStorageFile()</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="finalize()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>finalize</h4> <pre>protected void finalize()</pre> <dl> <dt><strong>Overrides:</strong></dt> <dd><code>finalize</code> in class <code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="Close()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Close</h4> <pre>public void Close()</pre> <div class="block">Closes a store previously opened with System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(System.IO.IsolatedStorage.IsolatedStorageScope,System.Type,System.Type), System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForAssembly(), or System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForDomain().</div> </li> </ul> <a name="CreateDirectory(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CreateDirectory</h4> <pre>public void CreateDirectory(java.lang.String dir)</pre> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>dir</code> - </dd></dl> </li> </ul> <a name="CreateFile(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CreateFile</h4> <pre>public <a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFileStream</a> CreateFile(java.lang.String path)</pre> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - </dd> <dt><span class="strong">Returns:</span></dt><dd></dd></dl> </li> </ul> <a name="DeleteFile(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DeleteFile</h4> <pre>public void DeleteFile(java.lang.String file)</pre> <div class="block">Deletes a file in the isolated store.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - The relative path of the file to delete within the isolated store.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="../../../System/IO/IsolatedStorage/IsolatedStorageException.html" title="class in System.IO.IsolatedStorage">IsolatedStorageException</a></code> - The store has been removed.-or-Unable to delete the file. -or-Isolated storage is disabled.</dd> <dd><code><a href="../../../System/ArgumentException.html" title="class in System">ArgumentException</a></code> - file is badly formed.</dd> <dd><code><a href="../../../System/ArgumentNullException.html" title="class in System">ArgumentNullException</a></code> - file is null.</dd> <dd><code><a href="../../../System/ObjectDisposedException.html" title="class in System">ObjectDisposedException</a></code> - The store has been disposed.</dd></dl> </li> </ul> <a name="FileExists(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>FileExists</h4> <pre>public boolean FileExists(java.lang.String path)</pre> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - </dd> <dt><span class="strong">Returns:</span></dt><dd></dd></dl> </li> </ul> <a name="CopyFile(java.lang.String, java.lang.String, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CopyFile</h4> <pre>public void CopyFile(java.lang.String sourceFileName, java.lang.String destinationFileName, boolean overwrite)</pre> <div class="block">Copies an existing file to a new file, and optionally overwrites an existing file.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>sourceFileName</code> - The name of the file to copy.</dd><dd><code>destinationFileName</code> - The name of the destination file. This cannot be a directory.</dd><dd><code>overwrite</code> - true if the destination file can be overwritten; otherwise, false.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="../../../System/ArgumentException.html" title="class in System">ArgumentException</a></code> - sourceFileName or destinationFileName is a zero-length string, contains only white space, or contains one or more invalid characters defined by the System.IO.Path.GetInvalidPathChars() method.</dd> <dd><code><a href="../../../System/ArgumentNullException.html" title="class in System">ArgumentNullException</a></code> - sourceFileName or destinationFileName is null.</dd> <dd><code><a href="../../../System/InvalidOperationException.html" title="class in System">InvalidOperationException</a></code> - The isolated store has been closed.</dd></dl> </li> </ul> <a name="GetUserStoreForApplication()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetUserStoreForApplication</h4> <pre>public static <a href="../../../System/IO/IsolatedStorage/IsolatedStorageFile.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFile</a> GetUserStoreForApplication()</pre> <div class="block">Obtains user-scoped isolated storage corresponding to the calling code's application identity.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>An System.IO.IsolatedStorage.IsolatedStorageFile object corresponding to the isolated storage scope based on the calling code's assembly identity.</dd></dl> </li> </ul> <a name="MoveDirectory(java.lang.String, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>MoveDirectory</h4> <pre>public void MoveDirectory(java.lang.String sourceDirectoryName, java.lang.String destinationDirectoryName)</pre> <div class="block">Moves a specified directory and its contents to a new location.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>sourceDirectoryName</code> - The name of the directory to move.</dd><dd><code>destinationDirectoryName</code> - The path to the new location for sourceDirectoryName. This cannot be the path to an existing directory.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="../../../System/ArgumentException.html" title="class in System">ArgumentException</a></code> - sourceFileName or destinationFileName is a zero-length string, contains only white space, or contains one or more invalid characters defined by the System.IO.Path.GetInvalidPathChars() method.</dd> <dd><code><a href="../../../System/ArgumentNullException.html" title="class in System">ArgumentNullException</a></code> - sourceFileName or destinationFileName is null.</dd> <dd><code><a href="../../../System/InvalidOperationException.html" title="class in System">InvalidOperationException</a></code> - The isolated store has been closed.</dd> <dd><code><a href="../../../System/ObjectDisposedException.html" title="class in System">ObjectDisposedException</a></code> - The isolated store has been disposed.</dd> <dd><code>System.DirectoryNotFoundException</code> - sourceDirectoryName does not exist.</dd></dl> </li> </ul> <a name="MoveFile(java.lang.String, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>MoveFile</h4> <pre>public void MoveFile(java.lang.String sourceFileName, java.lang.String destinationFileName)</pre> <div class="block">Moves a specified file to a new location, and optionally lets you specify a new file name.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>sourceFileName</code> - The name of the file to move.</dd><dd><code>destinationFileName</code> - The path to the new location for the file. If a file name is included, the moved file will have that name.</dd></dl> </li> </ul> <a name="OpenFile(java.lang.String, System.IO.FileMode)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>OpenFile</h4> <pre>public <a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html" title="class in System.IO.IsolatedStorage">IsolatedStorageFileStream</a> OpenFile(java.lang.String path, <a href="../../../System/IO/FileMode.html" title="enum in System.IO">FileMode</a> mode)</pre> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - </dd><dd><code>mode</code> - </dd> <dt><span class="strong">Returns:</span></dt><dd></dd></dl> </li> </ul> <a name="Remove()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>Remove</h4> <pre>public void Remove()</pre> <div class="block">Removes the isolated storage scope and all its contents.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="../../../System/IO/IsolatedStorage/IsolatedStorageException.html" title="class in System.IO.IsolatedStorage">IsolatedStorageException</a></code> - The isolated store cannot be deleted.</dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/IsolatedStorageFile.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../System/IO/IsolatedStorage/IsolatedStorageException.html" title="class in System.IO.IsolatedStorage"><span class="strong">Prev Class</span></a></li> <li><a href="../../../System/IO/IsolatedStorage/IsolatedStorageFileStream.html" title="class in System.IO.IsolatedStorage"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?System/IO/IsolatedStorage/IsolatedStorageFile.html" target="_top">Frames</a></li> <li><a href="IsolatedStorageFile.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor_summary">Constr</a> | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor_detail">Constr</a> | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>