IsolatedStorageFile.GetUserStoreForAssembly メソッド

定義

呼び出し元のコードのアセンブリ ID に対応するユーザー スコープの分離ストレージを取得します。

public:
 static System::IO::IsolatedStorage::IsolatedStorageFile ^ GetUserStoreForAssembly();
public static System.IO.IsolatedStorage.IsolatedStorageFile GetUserStoreForAssembly ();
static member GetUserStoreForAssembly : unit -> System.IO.IsolatedStorage.IsolatedStorageFile
Public Shared Function GetUserStoreForAssembly () As IsolatedStorageFile

戻り値

呼び出し元のコードのアセンブリ ID に基づく分離ストレージ スコープに対応するオブジェクト。

例外

分離ストレージに対して必要なアクセス許可が与えられていません。

分離ストレージの場所を初期化できません。

- または -

呼び出し元アセンブリのアクセス許可を特定できません。

注釈

このメソッドを使用する場合、異なるアプリケーション内の同じアセンブリは常に同じ分離ストアを使用します。

GetUserStoreForAssembly は、次のコードと機能的に同等です。

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

注意

同じアプリケーション ドメイン内で実行されている異なるアセンブリには、常に個別の分離ストアがあります。

適用対象

こちらもご覧ください