指定したアプリケーション ドメインとアセンブリの証拠オブジェクトおよび証拠型に対応する分離ストレージを取得します。
Overloads Public Shared Function GetStore( _
ByVal scope As IsolatedStorageScope, _ ByVal domainEvidence As Evidence, _ ByVal domainEvidenceType As Type, _ ByVal assemblyEvidence As Evidence, _ ByVal assemblyEvidenceType As Type _) As IsolatedStorageFile
[C#]
public static IsolatedStorageFile GetStore(IsolatedStorageScopescope,EvidencedomainEvidence,TypedomainEvidenceType,EvidenceassemblyEvidence,TypeassemblyEvidenceType);
[C++]
public: static IsolatedStorageFile* GetStore(IsolatedStorageScopescope,Evidence* domainEvidence,Type* domainEvidenceType,Evidence* assemblyEvidence,Type* assemblyEvidenceType);
[JScript]
public static function GetStore(
scope : IsolatedStorageScope,domainEvidence : Evidence,domainEvidenceType : Type,assemblyEvidence : Evidence,assemblyEvidenceType : Type) : IsolatedStorageFile;
パラメータ
- scope
IsolatedStorageScope 値のビットごとの組み合わせ。 - domainEvidence
アプリケーション ドメイン ID を格納している Evidence オブジェクト。 - domainEvidenceType
アプリケーション ドメインの証拠から選択する ID Type 。 - assemblyEvidence
コード アセンブリ ID を格納している Evidence オブジェクト。 - assemblyEvidenceType
アプリケーション コード アセンブリの証拠から選択する ID Type 。
戻り値
指定したパラメータを表す IsolatedStorageFile 。
例外
| 例外の種類 | 条件 |
|---|---|
| SecurityException | 分離ストレージに対して必要なアクセス許可が与えられていません。 |
| ArgumentNullException | domainEvidence ID または assemblyEvidence ID が渡されていません。 |
| ArgumentException | scope が無効です。 |
解説
Note[note]: scope が Domain であり、アセンブリがインストールされているアプリケーション ドメインが IsolatedStorageFilePermission を持たない場合、 GetStore はクォータを指定せずに IsolatedStorageFile を返します。クォータを持たない IsolatedStorageFile を使用して IsolatedStorageFile オブジェクトを後で作成しようとすると、 IsolatedStorageException が発生して失敗します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- IsolatedStorageFilePermission (分離ストレージを使用するために必要なアクセス許可) AdministerIsolatedStorageByUser (関連する列挙体)
- ReflectionPermission (Type.InvokeMember などの機構を通じて遅延バインディングで呼び出すときに必要なアクセス許可) ReflectionPermissionFlag.MemberAccess (関連する列挙体)
参照
IsolatedStorageFile クラス | IsolatedStorageFile メンバ | System.IO.IsolatedStorage 名前空間 | IsolatedStorageFile.GetStore オーバーロードの一覧