IsolatedStorageFile.GetUserStoreForAssembly 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得使用者範圍的隔離儲存,對應呼叫程式碼的組合身份。
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
在同一應用域中運行的不同組件,總是有不同的獨立儲存庫。