IsolatedStorageScope 열거형

정의

IsolatedStorage에 의해 지원되는 격리된 스토리지 범위의 수준을 나열합니다.

이 열거형은 멤버 값의 비트 조합을 지원합니다.

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
상속
IsolatedStorageScope
특성

필드

Application 32

애플리케이션으로 범위가 지정되는 격리된 스토리지입니다.

Assembly 4

어셈블리의 ID로 범위가 지정되는 격리된 스토리지입니다.

Domain 2

애플리케이션 도메인 ID로 범위가 지정되는 격리된 스토리지입니다.

Machine 16

머신으로 범위가 지정되는 격리된 스토리지입니다.

None 0

격리된 스토리지를 사용하지 않습니다.

Roaming 8

내부 운영 체제에서 로밍 사용자 데이터를 사용할 수 있는 경우 로밍할 수 있는 파일 시스템 위치에 격리된 저장소를 배치할 수 있습니다.

User 1

사용자 ID로 범위가 지정되는 격리된 스토리지입니다.

예제

다음 코드 예제에서는 메서드에서 IsolatedStorageScope GetStore 열거형을 사용하는 방법을 보여 줍니다.

// Retrieve an IsolatedStorageFile for the current Domain and Assembly.
IsolatedStorageFile^ isoFile = IsolatedStorageFile::GetStore( static_cast<IsolatedStorageScope>(IsolatedStorageScope::User | IsolatedStorageScope::Assembly | IsolatedStorageScope::Domain), (Type^)nullptr, nullptr );
IsolatedStorageFileStream^ isoStream = gcnew IsolatedStorageFileStream( this->userName,FileMode::Open,FileAccess::ReadWrite,isoFile );

// 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)

설명

격리된 저장소의 범위 수준을 지정하는 데 사용합니다 IsolatedStorageScope . 에서 지원하는 IsolatedStorage이러한 수준의 조합을 지정할 수 있습니다.

적용 대상

추가 정보