IsolatedStorageFile.GetMachineStoreForAssembly Metod

Definition

Hämtar datoromfattande isolerad lagring som motsvarar anropskodens sammansättningsidentitet.

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

Returer

Ett objekt som motsvarar det isolerade lagringsomfånget baserat på anropskodens sammansättningsidentitet.

Undantag

Det går inte att initiera en isolerad lagringsplats.

Tillräckliga isolerade lagringsbehörigheter har inte beviljats.

Kommentarer

Samma sammansättning i olika program använder alltid samma isolerade arkiv när du använder den här metoden.

GetMachineStoreForAssembly är funktionellt likvärdig med följande kod:

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

Observera

Olika sammansättningar som körs inom samma programdomän har alltid distinkta isolerade lager.

Gäller för

Se även