IsolatedStorageFile.GetMachineStoreForAssembly 메서드

정의

호출 코드의 어셈블리 ID에 해당하는 머신 범위의 격리된 스토리지를 가져옵니다.

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

반환

호출 코드의 어셈블리 ID에 기반한 격리된 스토리지 범위에 해당하는 개체입니다.

예외

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

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

설명

이 메서드를 사용 하는 경우 다른 애플리케이션 내에서 동일한 어셈블리 항상 같은 격리 된 저장소를 사용 합니다.

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

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

참고

항상 동일한 애플리케이션 도메인 내에서 실행 하는 다른 어셈블리에는 다른 격리 된 저장소가 있습니다.

적용 대상

추가 정보