Obtains machine-scoped isolated storage corresponding to the calling code's application identity.
Public Shared Function GetMachineStoreForApplication As IsolatedStorageFile
Dim returnValue As IsolatedStorageFile returnValue = IsolatedStorageFile.GetMachineStoreForApplication()
public static IsolatedStorageFile GetMachineStoreForApplication()
public: static IsolatedStorageFile^ GetMachineStoreForApplication()
public static function GetMachineStoreForApplication() : IsolatedStorageFile
Sufficient isolated storage permissions have not been granted.
The application identity of the caller could not be determined.
-or-The granted permission set for the AppDomain could not be determined.
All assemblies associated with an application use the same isolated store when using this method.
GetMachineStoreForApplication is functionally equivalent to the following code:
GetStore(IsolatedStorageScope.Application Or IsolatedStorageScope.Machine, Nothing, Nothing)
GetStore(IsolatedStorageScope.Application | IsolatedStorageScope.Machine, null, null);
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, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
This method also throws IsolatedStorageException in the following situations:The application identity of the caller could not be determined because AppDomain.CurrentDomain.ActivationContext returned a null reference (Nothing in Visual Basic).-or-The granted permission set for the AppDomain could not be determined.