NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SecurityPermissionFlag Enumeration

Flags for the security permission object.

[Visual Basic]
Public Enum SecurityPermissionFlag
[C#]
public enum SecurityPermissionFlag
[C++]
public enum SecurityPermissionFlag

[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.

Remarks

The meaning of each flag bit are described for each definition.

Members

Member Name Description
AllFlags Denotes all security permission flags set, corresponding to the unrestricted state of the permission.
Assertion Denotes ability of code to assert any permissions granted to it. Without this permission, attempts to use Assert() will fail.
ControlDomainPolicy Denotes ability to specify domain policy.
ControlEvidence Denotes ability to provide evidence to policy for purpose of granted permissions to code.
ControlPolicy Denotes ability to view and modify policy.
ControlPrincipal Denotes ability to manipulate the principal object.
ControlThread Denotes ability to use certain advanced operations on threads.

See Thread APIs for further details.

Execution Denotes permission for the code to run. Without this permission managed code is not run.
NoFlags Denotes the flag value corresponding to no flags being set.
SerializationFormatter Serialization formatters must have this permission to be able to provide serialization services.
SkipVerification Denotes that verification of code in the assembly this is granted to may be skipped. That is, code that is unverifiable can be run if this permission is granted.
UnmanagedCode Denotes ability to call unmanaged code.

Since unmanaged code potentially allows other permissions to be bypassed, this is a dangerous permission that should only be granted to trusted code.

Requirements

Namespace: System.Security.Permissions

Assembly: mscorlib.dll

See Also

System.Security.Permissions Namespace