語言

IsolatedStorageFile.GetUserStoreForAssembly 方法

定義

取得使用者範圍的隔離儲存,對應呼叫程式碼的組合身份。

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

傳回

一個對應於呼叫程式碼組合身份的隔離儲存範圍的物件。

例外狀況

尚未獲得足夠的隔離儲存許可。

隔離的儲存位置無法初始化。

-或-

無法確定呼叫集合的權限。

備註

同一組在不同應用中使用此方法時,總是使用相同的隔離儲存。

GetUserStoreForAssembly 在功能上等價於以下程式碼:

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

Note

在同一應用域中運行的不同組件,總是有不同的獨立儲存庫。

適用於

另請參閱