Export (0) Print
Expand All

IsolatedStorageFile.GetUserStoreForApplication Method

Updated: December 2009

Obtains user-scoped isolated storage corresponding to the calling code's application identity.

Namespace:  System.IO.IsolatedStorage
Assembly:  mscorlib (in mscorlib.dll)

public static IsolatedStorageFile GetUserStoreForApplication()

Return Value

Type: System.IO.IsolatedStorage.IsolatedStorageFile
An IsolatedStorageFile object corresponding to the isolated storage scope based on the calling code's assembly identity.

ExceptionCondition
SecurityException

Sufficient isolated storage permissions have not been granted.

IsolatedStorageException

An isolated storage location cannot be initialized.

All assemblies associated with an application use the same isolated store when using this method.

GetUserStoreForApplication is functionally equivalent to the following code:

GetStore(IsolatedStorageScope.Application | IsolatedStorageScope.User, null);

In this code, the applicationIdentity parameter for GetStore(IsolatedStorageScope scope, Object applicationIdentity) is null.

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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Date

History

Reason

December 2009

Updated exception information.

Content bug fix.

Community Additions

ADD
Show:
© 2014 Microsoft