IsolatedStorageFile.GetMachineStoreForApplication 메서드

정의

호출 코드의 애플리케이션 ID에 해당하는 컴퓨터 범위의 격리된 스토리지를 가져옵니다.

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

반환

호출 코드의 애플리케이션 ID에 기반한 격리된 스토리지 범위에 해당하는 개체입니다.

예외

호출자의 애플리케이션 ID를 확인할 수 없습니다.

또는

애플리케이션 도메인에 부여된 권한 집합을 확인할 수 없습니다.

또는

격리된 스토리지 위치를 초기화할 수 없습니다.

격리된 스토리지 권한이 충분히 부여되지 않은 경우.

설명

이 메서드를 사용 하는 경우 애플리케이션을 사용 하 여 연결 된 모든 어셈블리가 같은 격리 된 저장소를 사용 합니다.

GetMachineStoreForApplication 는 다음 코드와 기능적으로 동일합니다.

isoFile = IsolatedStorageFile::GetStore(IsolatedStorageScope::Application |
    IsolatedStorageScope::Machine, (Type^)nullptr);
isoFile = IsolatedStorageFile.GetStore(IsolatedStorageScope.Application |
    IsolatedStorageScope.Machine, null);
isoFile = IsolatedStorageFile.GetStore(IsolatedStorageScope.Application Or _
    IsolatedStorageScope.Machine,  Nothing)

적용 대상

추가 정보