System.IO.IsolatedStorage.IsolatedStorageFile.GetPermission Method

Returns the System.Security.Permissions.IsolatedStoragePermission from within a given permission set that represents access to isolated storage.

Syntax

protected override System.Security.Permissions.IsolatedStoragePermission GetPermission (System.Security.PermissionSet ps)

Parameters

ps
An object that contains the set of permissions granted to code that is attempting to use isolated storage.

Returns

An object that represents the System.IO.IsolatedStorage.IsolatedStorageFile object in the supplied permission set. The value is null if there is no permission of type System.Security.Permissions.IsolatedStorageFilePermission in the supplied set.

Remarks

This method is called during a store's initialization to determine the isolated storage file permissions that are granted to an assembly. The System.IO.IsolatedStorage.IsolatedStorage base class uses these permissions to determine the quota.

Requirements

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0