Bewerken

Delen via


IsolatedStorage.GetPermission(PermissionSet) Method

Definition

When implemented by a derived class, returns a permission that represents access to isolated storage from within a permission set.

protected:
 abstract System::Security::Permissions::IsolatedStoragePermission ^ GetPermission(System::Security::PermissionSet ^ ps);
protected abstract System.Security.Permissions.IsolatedStoragePermission GetPermission (System.Security.PermissionSet ps);
abstract member GetPermission : System.Security.PermissionSet -> System.Security.Permissions.IsolatedStoragePermission
Protected MustOverride Function GetPermission (ps As PermissionSet) As IsolatedStoragePermission

Parameters

ps
PermissionSet

The PermissionSet object that contains the set of permissions granted to code attempting to use isolated storage.

Returns

An IsolatedStoragePermission object.

Remarks

You call this method on derived classes to determine what permission type governs their use, and to return the permission of the type that has been granted. Use this information to determine the allowable quota and any other derived class-specific isolated storage settings.

Applies to