System.AppDomainManager.CheckSecuritySettings Method

Indicates whether the specified operation is allowed in the application domain.

Syntax

public virtual bool CheckSecuritySettings (System.Security.SecurityState state)

Parameters

state
A subclass of System.Security.SecurityState that identifies the operation whose security status is requested.

Returns

true if the host allows the operation specified by state to be performed in the application domain; otherwise, false.

Remarks

The default implementation of this method returns false.

This method is called when the System.IO.IsolatedStorage.IsolatedStorageFile.IncreaseQuotaTo(long) method has been called to increase the isolated storage quota. An application that hosts the common language runtime (CLR) can override the AppDomainManager.CheckSecuritySettings(System.Security.SecurityState) method to perform policy decisions based on an System.IO.IsolatedStorage.IsolatedStorageSecurityState object (which inherits System.Security.SecurityState), and can then allow or prevent the increase. For example, a host could prompt the end user to approve or deny the request to increase the quota. The host's implementation of AppDomainManager.CheckSecuritySettings(System.Security.SecurityState) should take into account the possibility of denial-of-service attacks. For example, it should prompt the user only if the method is called from a user-initiated event such as a button click.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0