StorePermissionFlags Enumeration
Assembly: System (in system.dll)
| Member name | Description | |
|---|---|---|
| AddToStore | The ability to add a certificate to a store. For security reasons, this ability should be granted only to highly trusted code. | |
| AllFlags | The ability to perform all certificate and store operations. | |
| CreateStore | The ability to create a new store. New stores are created by calling the X509Store.Open method. | |
| DeleteStore | The ability to delete a store. This functionality is not exposed by the X509Store class. | |
| EnumerateCertificates | The ability to enumerate the certificates in a store. For privacy reasons, this ability should be granted only to fully trusted code. | |
| EnumerateStores | The ability to enumerate the stores on a computer. This functionality is not exposed by the X509Store class. | |
| NoFlags | Permission is not given to perform any certificate or store operations. | |
| OpenStore | The ability to open a store. The ability to open a store does not include the ability to enumerate certificates (which raises privacy concerns) or to add or remove certificates (which raises security concerns). | |
| RemoveFromStore | The ability to remove a certificate from a store. This ability should be granted only to highly trusted code because removing a certificate can result in a denial of service. |
The following code example shows the use of the StorePermissionFlags enumeration. This code example is part of a larger example provided for the StorePermission class.
Console.WriteLine("Creating a permission with Flags = OpenStore.");
StorePermission sp = new StorePermission(StorePermissionFlags.OpenStore);
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.