This documentation is archived and is not being maintained.

IsolatedStorageFile.GetUserStoreForAssembly Method

Obtains isolated storage corresponding to the calling code's assembly identity.

[Visual Basic]
Public Shared Function GetUserStoreForAssembly() As _
public static IsolatedStorageFile GetUserStoreForAssembly();
public: static IsolatedStorageFile* GetUserStoreForAssembly();
public static function GetUserStoreForAssembly() :

Return Value

An IsolatedStorageFile corresponding to the isolated storage scope based on the calling code's assembly identity.


Exception Type Condition
SecurityException Sufficient isolated storage permissions have not been granted.


The same assembly within different applications always use the same isolated store when using this method.

GetUserStoreForAssembly is functionally equivalent to:

[Visual Basic] 
GetStore(IsolatedStorageScope.Assembly Or IsolatedStorageScope.User, Nothing, Nothing)
GetStore(IsolatedStorageScope.Assembly | IsolatedStorageScope.User, null, null);
Note   Different assemblies running within the same application domain always have distinct isolated stores.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

IsolatedStorageFile Class | IsolatedStorageFile Members | System.IO.IsolatedStorage Namespace