StorePermissionFlags StorePermissionFlags StorePermissionFlags StorePermissionFlags Enum


Specifies the permitted access to X.509 certificate stores.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum class StorePermissionFlags
public enum StorePermissionFlags
type StorePermissionFlags = 
Public Enum StorePermissionFlags


AddToStore AddToStore AddToStore AddToStore 32

The ability to add a certificate to a store.

AllFlags AllFlags AllFlags AllFlags 247

The ability to perform all certificate and store operations.

CreateStore CreateStore CreateStore CreateStore 1

The ability to create a new store.

DeleteStore DeleteStore DeleteStore DeleteStore 2

The ability to delete a store.

EnumerateCertificates EnumerateCertificates EnumerateCertificates EnumerateCertificates 128

The ability to enumerate the certificates in a store.

EnumerateStores EnumerateStores EnumerateStores EnumerateStores 4

The ability to enumerate the stores on a computer.

NoFlags NoFlags NoFlags NoFlags 0

Permission is not given to perform any certificate or store operations.

OpenStore OpenStore OpenStore OpenStore 16

The ability to open a store.

RemoveFromStore RemoveFromStore RemoveFromStore RemoveFromStore 64

The ability to remove a certificate from a store.


The following code example shows the use of the StorePermissionFlags enumeration.

Console::WriteLine( "Creating a permission with Flags = OpenStore." );
StorePermission^ sp = gcnew StorePermission( StorePermissionFlags::OpenStore );

Console.WriteLine("Creating a permission with Flags = OpenStore.");
StorePermission sp = new StorePermission(StorePermissionFlags.OpenStore);
Console.WriteLine("Creating a permission with Flags = OpenStore.")
Dim sp As New System.Security.Permissions.StorePermission(StorePermissionFlags.OpenStore)


Many of these access permissions pose potential security and privacy threats. Great care should be taken in granting access to stores. A brief description of the type of threat exposed by an access can be found in the summary for the access.

Applies to