Obtains user-scoped isolated storage corresponding to the calling code's application identity.
Public Shared Function GetUserStoreForApplication As IsolatedStorageFile
public static IsolatedStorageFile GetUserStoreForApplication()
public: static IsolatedStorageFile^ GetUserStoreForApplication()
static member GetUserStoreForApplication : unit -> IsolatedStorageFile
Sufficient isolated storage permissions have not been granted.
An isolated storage location cannot be initialized.
-or-
The application identity of the caller cannot be determined, because the ActivationContext property returned nullNothingnullptra null reference (Nothing in Visual Basic).
The permissions for the application domain cannot be determined.
All assemblies associated with an application use the same isolated store when using this method.
GetUserStoreForApplication is functionally equivalent to the following code:
isoFile = IsolatedStorageFile.GetStore(IsolatedStorageScope.Application Or _ IsolatedStorageScope.User, Nothing)
isoFile = IsolatedStorageFile.GetStore(IsolatedStorageScope.Application | IsolatedStorageScope.User, null);
isoFile = IsolatedStorageFile::GetStore(IsolatedStorageScope::Application | IsolatedStorageScope::User, (Type^)nullptr);
In this code, the applicationIdentity parameter for GetStore(IsolatedStorageScope scope, Object applicationIdentity) is nullNothingnullptra null reference (Nothing in Visual Basic).
for using isolated storage. Associated enumeration: AssemblyIsolationByUser
when invoked late-bound through mechanisms such as Type..::.InvokeMember. Associated enumeration: ReflectionPermissionFlag..::.MemberAccess
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2