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!

Creating a permission

Permissions are created in either a totally restrictive (no permission) or totally unrestrictive (all permissions corresponding to the particular resource) state. For example, the file permission constructor would create an object representing either no access to any files, or all access to all files. Each type of permission clearly defines to extreme states representing either all or none of the permissions expressable within the type. Thus, it is possible to create a generic permission in a completely restricted or unrestricted state without knowledge of the particular permission, however intermediate states can only be set according to the specific permission semantics. These states can are expressed using the PermissionState object as in the examples below.

Other constructor forms may be defined according to the particular permission to specify other states of the permission as well. Null constructors (of form: SomePermission() ) are equivalent to using the PermissionState.None constructor.