AppDomainManager.CheckSecuritySettings(SecurityState) Method

Definition

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

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

Parameters

state
SecurityState

A subclass of 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 IsolatedStorageFile.IncreaseQuotaTo method has been called to increase the isolated storage quota. An application that hosts the common language runtime (CLR) can override the CheckSecuritySettings method to perform policy decisions based on an IsolatedStorageSecurityState object (which inherits 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 CheckSecuritySettings 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.

Applies to

Produkt Wersje
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1