Share via


分離ストレージとローミング

ローミング ユーザー プロファイルは、Microsoft Windows 機能の 1 つであり、アップデートされた Windows 98 システム、Windows NT、Windows 2000、Windows XP、および Windows Vista で使用できます。ローミング ユーザー プロファイルを使用すると、ユーザーは、ネットワーク上に ID を設定し、その ID を使用して任意のネットワーク コンピューターにログインし、すべての個人設定を引き継いで使用できます。 分離ストレージを使用するアセンブリでは、ユーザーの分離ストレージがローミング ユーザー プロファイルと共に移動するように指定できます。 ローミングは、ユーザーやアセンブリ別の分離、またはユーザー、ドメイン、およびアセンブリ別の分離と組み合わせて使用できます。 ローミング スコープが使用されていない場合は、ローミング ユーザー プロファイルを使用しても、ストアは移動しません。

ユーザーおよびアセンブリ別に分離されたローミング ストアを取得するコード例を次に示します。 ストアには、isoFile オブジェクトを通じてアクセスできます。

Dim isoFile As IsolatedStorageFile = _
    IsolatedStorageFile.GetStore(IsolatedStorageScope.User Or _
        IsolatedStorageScope.Assembly Or _
        IsolatedStorageScope.Roaming, Nothing, Nothing)
IsolatedStorageFile isoFile =
    IsolatedStorageFile.GetStore(IsolatedStorageScope.User |
        IsolatedStorageScope.Assembly |
        IsolatedStorageScope.Roaming, null, null);
IsolatedStorageFile^ isoFile =
    IsolatedStorageFile::GetStore(IsolatedStorageScope::User |
        IsolatedStorageScope::Assembly |
        IsolatedStorageScope::Roaming, (Type^)nullptr, (Type^)nullptr);

ドメイン スコープを追加すると、ユーザー、ドメイン、およびアプリケーション別に分離されたローミング ストアを作成できます。 ドメイン スコープを追加するコード例を次に示します。

Dim isoFile As IsolatedStorageFile = _
    IsolatedStorageFile.GetStore(IsolatedStorageScope.User Or _
        IsolatedStorageScope.Assembly Or IsolatedStorageScope.Domain Or _
        IsolatedStorageScope.Roaming, Nothing, Nothing)
IsolatedStorageFile isoFile =
    IsolatedStorageFile.GetStore(IsolatedStorageScope.User |
        IsolatedStorageScope.Assembly | IsolatedStorageScope.Domain |
        IsolatedStorageScope.Roaming, null, null);
IsolatedStorageFile^ isoFile =
    IsolatedStorageFile::GetStore(IsolatedStorageScope::User |
        IsolatedStorageScope::Assembly | IsolatedStorageScope::Domain |
        IsolatedStorageScope::Roaming, (Type^)nullptr, (Type^)nullptr);

参照

概念

分離ストレージ

分離のタイプ

ユーザーおよびアセンブリ別の分離

ユーザー、ドメイン、およびアセンブリ別の分離