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!

Code Access Security Sample

The purpose of this sample is to introduce developers to the mechanics of code access security. Code access security is a mechanism that grants/denies access to resources within a method call. For example, code written by Microsoft may be allowed to write to the disk while code from another company may be forbidden from accessing the disk. This control is enforced even if the code from both companies is used within a single application. This sample repeatedly attempts to access a disk file and an environment variable. Before each attempt, the code access permissions are changed to see the affect.

Location of the Sample

This sample list located in the Permissions directory of the NGWS SDK sample directories.

For Example:

C:\Program Files\NGWSSDK\Samples\Permissions

Building the Sample

In order to properly build and run this sample, the following steps need to be performed prior to building and running the sample.

Running the Sample

In order to run this sample, follow the instructions listed below.