IsolatedStorageScope 列挙型

定義

IsolatedStorageでサポートされている分離ストレージ スコープのレベルを列挙します。

この列挙体は、メンバー値のビットごとの組み合わせをサポートしています。

public enum class IsolatedStorageScope
[System.Flags]
public enum IsolatedStorageScope
[System.Flags]
[System.Serializable]
public enum IsolatedStorageScope
[System.Flags]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum IsolatedStorageScope
[<System.Flags>]
type IsolatedStorageScope = 
[<System.Flags>]
[<System.Serializable>]
type IsolatedStorageScope = 
[<System.Flags>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IsolatedStorageScope = 
Public Enum IsolatedStorageScope
継承
IsolatedStorageScope
属性

フィールド

名前 説明
None 0

分離ストレージの使用はありません。

User 1

ユーザー ID でスコープ指定された分離ストレージ。

Domain 2

アプリケーション ドメイン ID にスコープが設定された分離ストレージ。

Assembly 4

アセンブリの ID にスコープが設定された分離ストレージ。

Roaming 8

分離ストアは、ローミングする可能性があるファイル システム上の場所に配置できます (基になるオペレーティング システムでローミング ユーザー データが有効になっている場合)。

Machine 16

マシンにスコープが設定された分離ストレージ。

Application 32

アプリケーションにスコープが設定された分離ストレージ。

次のコード例は、IsolatedStorageScope メソッドでGetStore列挙型を使用する方法を示しています。


// 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("substituteUsername",
    System.IO.FileMode.Open,
    System.IO.FileAccess.Read,
     System.IO.FileShare.Read);
' 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("substituteUsername", System.IO.FileMode.Open, _
    System.IO.FileAccess.Read, System.IO.FileShare.Read)

注釈

分離ストアのスコープの程度を指定するには、 IsolatedStorageScope を使用します。 IsolatedStorageでサポートされているこれらのレベルの組み合わせを指定できます。

適用対象

こちらもご覧ください