Visual Basic Security Samples

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

These samples demonstrate security tasks.

To access samples from Visual Studio

  1. On the Help menu, click Samples.

  2. In the Samples on Disk section of the readme file, click local Samples folder. By default, the samples are installed in drive:\Program Files\Microsoft Visual Studio 11\Samples\1033 or drive:\Program Files (x86)\Microsoft Visual Studio 11\Samples\1033.

  3. Right-click the .zip file that contains the samples you want to open and then click Extract All to extract the samples to a folder of your choice.

For the most current samples, go to the Visual Basic Samples Web site.

Security noteSecurity Note

Microsoft provides the included samples "AS IS" with no warranties. The code in the samples is provided just to illustrate concepts. The provided code may not meet security requirements for any specific environment. We recommend that you add security and error-handling code to your projects to make them as secure and robust as you deem appropriate.

Samples

Sample

Description

Security Sample

This sample demonstrates how to modify security permissions through permission classes and permission attributes.

See Also

Reference

HashAlgorithm

SymmetricAlgorithm

Other Resources

Visual Studio 2010 Samples

Cryptographic Services

Secure Coding Guidelines

Visual Basic Sample Applications