IsolatedStorage::ApplicationIdentity Property
.NET Framework (current version)
Gets an application identity that scopes isolated storage.
Assembly: mscorlib (in mscorlib.dll)
public: [ComVisibleAttribute(false)] property Object^ ApplicationIdentity { [SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::ControlPolicy)] Object^ get(); }
| Exception | Condition |
|---|---|
| SecurityException | The code lacks the required SecurityPermission to access this object. These permissions are granted by the runtime based on security policy. |
| InvalidOperationException | The IsolatedStorage object is not isolated by the application IsolatedStorageScope. |
Since the definition of an application includes all assemblies associated with the application, you can use this type of identity to ensure that only assemblies associated with the application have access to the isolated storage.
SecurityPermission
for the ability to access evidence. Associated enumeration: SecurityPermissionFlag::ControlPolicy
.NET Framework
Available since 2.0
Available since 2.0
Show: