IsolatedStorageFile 类

表示包含文件和目录的独立存储区。

**命名空间:**System.IO.IsolatedStorage
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
<ComVisibleAttribute(True)> _
Public NotInheritable Class IsolatedStorageFile
    Inherits IsolatedStorage
    Implements IDisposable
用法
Dim instance As IsolatedStorageFile
[ComVisibleAttribute(true)] 
public sealed class IsolatedStorageFile : IsolatedStorage, IDisposable
[ComVisibleAttribute(true)] 
public ref class IsolatedStorageFile sealed : public IsolatedStorage, IDisposable
/** @attribute ComVisibleAttribute(true) */ 
public final class IsolatedStorageFile extends IsolatedStorage implements IDisposable
ComVisibleAttribute(true) 
public final class IsolatedStorageFile extends IsolatedStorage implements IDisposable

备注

此对象对应于特定的独立存储范围,在该范围中存在由 IsolatedStorageFileStream 对象表示的文件。应用程序可以使用独立存储将数据保存在文件系统中这些数据自己的独立部分,而不必在文件系统中指定特定的路径。因为独立存储区在特定程序集的范围内,所以其他大多数托管代码都不能访问您的代码的数据(高度受信任的托管代码和管理工具可以从其他程序集访问存储区)。非托管代码可以访问任何独立存储区。

继承层次结构

System.Object
   System.MarshalByRefObject
     System.IO.IsolatedStorage.IsolatedStorage
      System.IO.IsolatedStorage.IsolatedStorageFile

线程安全

此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

IsolatedStorageFile 成员
System.IO.IsolatedStorage 命名空间