IsolatedStorageScope Enumeration

Definition

Listet die Ebenen des isolierten Speicherbereichs auf, die von IsolatedStorageunterstützt werden.

Diese Enumeration unterstützt eine bitweise Kombination ihrer Memberwerte.

public enum class IsolatedStorageScope
[System.Flags]
public enum IsolatedStorageScope
[System.Flags]
[System.Serializable]
public enum IsolatedStorageScope
[System.Flags]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum IsolatedStorageScope
[<System.Flags>]
type IsolatedStorageScope = 
[<System.Flags>]
[<System.Serializable>]
type IsolatedStorageScope = 
[<System.Flags>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IsolatedStorageScope = 
Public Enum IsolatedStorageScope
Vererbung
IsolatedStorageScope
Attribute

Felder

Name Wert Beschreibung
None 0

Keine isolierte Speichernutzung.

User 1

Isolierter Speicher, der nach Benutzeridentität festgelegt ist.

Domain 2

Isolierter Speicherbereich für die Anwendungsdomänenidentität.

Assembly 4

Isolierter Speicherbereich auf die Identität der Assembly.

Roaming 8

Der isolierte Speicher kann an einem Speicherort im Dateisystem platziert werden, der möglicherweise roamingfähig ist (wenn Roamingbenutzerdaten auf dem zugrunde liegenden Betriebssystem aktiviert sind).

Machine 16

Isolierter Speicher, der auf den Computer eingestellt ist.

Application 32

Isolierter Speicherbereich für die Anwendung.

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie die IsolatedStorageScope Enumeration in den GetStore Methoden verwendet wird.


// 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("substituteUsername",
    System.IO.FileMode.Open,
    System.IO.FileAccess.Read,
     System.IO.FileShare.Read);
' 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("substituteUsername", System.IO.FileMode.Open, _
    System.IO.FileAccess.Read, System.IO.FileShare.Read)

Hinweise

Wird verwendet IsolatedStorageScope , um einen Bereich für einen isolierten Speicher anzugeben. Sie können Kombinationen dieser Ebenen angeben, die von IsolatedStorage.

Gilt für:

Weitere Informationen