IsolatedStorageFile.GetMachineStoreForApplication メソッド

定義

呼び出し元のコードのアプリケーション ID に対応する、コンピューター スコープの分離ストレージを取得します。

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

返品

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

例外

呼び出し元のアプリケーション ID を特定できませんでした。

-又は-

アプリケーション ドメインに付与されたアクセス許可セットを特定できませんでした。

-又は-

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

十分な分離ストレージのアクセス許可が付与されていません。

注釈

アプリケーションに関連付けられているすべてのアセンブリは、このメソッドを使用するときに同じ分離ストアを使用します。

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

isoFile = IsolatedStorageFile.GetStore(IsolatedStorageScope.Application |
    IsolatedStorageScope.Machine, null);
isoFile = IsolatedStorageFile.GetStore(IsolatedStorageScope.Application Or _
    IsolatedStorageScope.Machine,  Nothing)

適用対象

こちらもご覧ください