IsolatedStorage.Scope プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

ストアを分離するためのスコープを指定する IsolatedStorageScope 値のビットごとの組み合わせ。


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


IsolatedStorageScope 列挙体
この列挙体には、メンバ値のビットごとの組み合わせを可能にする FlagsAttribute 属性が含まれています。
名前空間: System.IO.IsolatedStorageアセンブリ: mscorlib (mscorlib.dll 内)

<SerializableAttribute> _ <ComVisibleAttribute(True)> _ <FlagsAttribute> _ Public Enumeration IsolatedStorageScope
[SerializableAttribute] [ComVisibleAttribute(true)] [FlagsAttribute] public enum IsolatedStorageScope
[SerializableAttribute] [ComVisibleAttribute(true)] [FlagsAttribute] public enum class IsolatedStorageScope

メンバ名 | 説明 | |
---|---|---|
Application | アプリケーションにスコープが指定されている分離ストレージ。 | |
Assembly | アセンブリの ID によってスコープが指定されている分離ストレージ。 | |
Domain | アプリケーション ドメイン ID によってスコープが指定されている分離ストレージ。 | |
Machine | コンピュータにスコープが指定されている分離ストレージ。 | |
None | 分離ストレージを使用しない。 | |
Roaming | ローミング ユーザー データが、基になるオペレーティング システムで有効になっている場合、分離ストアは、移動先のファイル システム上に配置できます。 | |
User | ユーザー ID によってスコープが指定されている分離ストレージ。 |


GetStore メソッドで IsolatedStorageScope 列挙体を使用する方法を次の例に示します。
' Retrieve an IsolatedStorageFile for the current Domain and Assembly. Dim isoFile As IsolatedStorageFile = _ IsolatedStorageFile.GetStore(IsolatedStorageScope.User _ Or IsolatedStorageScope.Assembly _ Or IsolatedStorageScope.Domain, Nothing, Nothing) Dim isoStream As New IsolatedStorageFileStream(Me.userName, FileMode.Open, _ FileAccess.Read, FileShare.Read)
// Retrieve an IsolatedStorageFile for the current Domain and Assembly. IsolatedStorageFile isoFile = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain, null, null); IsolatedStorageFileStream isoStream = new IsolatedStorageFileStream(this.userName , FileMode.Open, FileAccess.Read, FileShare.Read);
// Retrieve an IsolatedStorageFile for the current Domain and Assembly. IsolatedStorageFile^ isoFile = IsolatedStorageFile::GetStore( static_cast<IsolatedStorageScope>(IsolatedStorageScope::User | IsolatedStorageScope::Assembly | IsolatedStorageScope::Domain), (Type^)nullptr, nullptr ); IsolatedStorageFileStream^ isoStream = gcnew IsolatedStorageFileStream( this->userName,FileMode::Open,FileAccess::ReadWrite,isoFile );

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- IsolatedStorageScopeのページへのリンク