Export (0) Print
Expand All

AppDomainManager.CheckSecuritySettings Method

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public virtual bool CheckSecuritySettings(
	SecurityState state
)

Parameters

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

Return Value

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

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.

.NET Framework

Supported in: 4, 3.5 SP1, 3.0 SP2, 2.0 SP2

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2015 Microsoft