Mono Class Library: System.Security.SecurityManager Overview | Members

System.Security.SecurityManager.SecurityEnabled Property

Enable, or disable, the security manager.

[System.Obsolete("The security manager cannot be turned off on MS runtime")]
public static bool SecurityEnabled { set; get; }

Value

True to activate the security manager. False to disable the security manager.

Remarks

By default the security manager is *OFF* in Mono. You can activate the security manager by supplying the --security switch to mono.

Example

% mono --security hello.exe
hello world!

Note that Mono's security manager is experimental and not for production use.

On MS runtime 2.0 and later the security manager cannot be turned off using this property.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0