次の方法で共有


IsolatedStorageFile.GetStore メソッド

指定したアプリケーション ドメインとアセンブリの証拠オブジェクト、分離ストレージ スコープに対応する分離ストレージを取得します。

オーバーロードの一覧

指定したアプリケーション ドメインとアセンブリの証拠オブジェクトに対応する分離ストレージを取得します。

[Visual Basic] Overloads Public Shared Function GetStore(IsolatedStorageScope, Object, Object) As IsolatedStorageFile

[C#] public static IsolatedStorageFile GetStore(IsolatedStorageScope, object, object);

[C++] public: static IsolatedStorageFile* GetStore(IsolatedStorageScope, Object*, Object*);

[JScript] public static function GetStore(IsolatedStorageScope, Object, Object) : IsolatedStorageFile;

指定したアプリケーション ドメインとアセンブリの証拠型で指定される分離ストレージ スコープに対応する分離ストレージを取得します。

[Visual Basic] Overloads Public Shared Function GetStore(IsolatedStorageScope, Type, Type) As IsolatedStorageFile

[C#] public static IsolatedStorageFile GetStore(IsolatedStorageScope, Type, Type);

[C++] public: static IsolatedStorageFile* GetStore(IsolatedStorageScope, Type*, Type*);

[JScript] public static function GetStore(IsolatedStorageScope, Type, Type) : IsolatedStorageFile;

指定したアプリケーション ドメインとアセンブリの証拠オブジェクトおよび証拠型に対応する分離ストレージを取得します。

[Visual Basic] Overloads Public Shared Function GetStore(IsolatedStorageScope, Evidence, Type, Evidence, Type) As IsolatedStorageFile

[C#] public static IsolatedStorageFile GetStore(IsolatedStorageScope, Evidence, Type, Evidence, Type);

[C++] public: static IsolatedStorageFile* GetStore(IsolatedStorageScope, Evidence*, Type*, Evidence*, Type*);

[JScript] public static function GetStore(IsolatedStorageScope, Evidence, Type, Evidence, Type) : IsolatedStorageFile;

使用例

[Visual Basic, C#, C++] GetStore メソッドについては、次のコード例を参照してください。この例のコンテキスト全体については、 IsolatedStorageFile の概要を参照してください。

[Visual Basic, C#, C++] メモ   ここでは、GetStore のオーバーロード形式のうちの 1 つだけについて、使用例を示します。その他の例については、各オーバーロード形式のトピックを参照してください。

 
' Retrieve an IsolatedStorageFile for the current Domain and Assembly.
Dim isoFile As IsolatedStorageFile = _
    IsolatedStorageFile.GetStore(IsolatedStorageScope.User _
    Or IsolatedStorageScope.Assembly _
    Or IsolatedStorageScope.Domain, Nothing, Nothing)

Dim isoStream As New IsolatedStorageFileStream(Me.userName, FileMode.Open, _
    FileAccess.Read, FileShare.Read)

[C#] 

                // Retrieve an IsolatedStorageFile for the current Domain and Assembly.
                IsolatedStorageFile isoFile =
                    IsolatedStorageFile.GetStore(IsolatedStorageScope.User |
                    IsolatedStorageScope.Assembly |
                    IsolatedStorageScope.Domain ,
                    null,
                    null);

                IsolatedStorageFileStream isoStream =
                    new IsolatedStorageFileStream( this.userName,
                    FileMode.Open,
                    FileAccess.Read,
                    FileShare.Read);  

[C++] 
// Retrieve an IsolatedStorageFile for the current Domain and Assembly.
IsolatedStorageFile* isoFile =
   IsolatedStorageFile::GetStore(
   static_cast<IsolatedStorageScope>(IsolatedStorageScope::User | 
   IsolatedStorageScope::Assembly |
   IsolatedStorageScope::Domain),
   (Type*)0, 0);
IsolatedStorageFileStream* isoStream = new IsolatedStorageFileStream(this->userName,
   FileMode::Open,  
   FileAccess::ReadWrite,
   isoFile);

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

参照

IsolatedStorageFile クラス | IsolatedStorageFile メンバ | System.IO.IsolatedStorage 名前空間