Retrieves the trust level of the environment application is running under.

Namespace: MonoSoftware.Web.Security
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static AspNetHostingPermissionLevel GetCurrentTrustLevel()
Visual Basic
Public Shared Function GetCurrentTrustLevel As AspNetHostingPermissionLevel
Visual C++
public:
static AspNetHostingPermissionLevel GetCurrentTrustLevel()
F#
static member GetCurrentTrustLevel : unit -> AspNetHostingPermissionLevel 

Return Value

Type: AspNetHostingPermissionLevel
Hosting permission level (trust level).

See Also