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, null, null);
isoFile = IsolatedStorageFile.GetStore(IsolatedStorageScope.Assembly Or _
    IsolatedStorageScope.User, Nothing, Nothing)

Note

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

適用対象

こちらもご覧ください