IsolatedStorageFile.GetUserStoreForAssembly 메서드

정의

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

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

반환

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

예외

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

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

또는

호출 어셈블리 사용 권한을 확인할 수 없습니다.

설명

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

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

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

참고

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

적용 대상

추가 정보