StorePermissionAttribute
Allows security actions for StorePermission to be applied to code using declarative security. This class cannot be inherited.
namespace System.Security.Permissions
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public sealed class StorePermissionAttribute : CodeAccessSecurityAttribute
{
public StorePermissionFlags Flags { get; set; }
public bool CreateStore { get; set; }
public bool DeleteStore { get; set; }
public bool EnumerateStores { get; set; }
public bool OpenStore { get; set; }
public bool AddToStore { get; set; }
public bool RemoveFromStore { get; set; }
public bool EnumerateCertificates { get; set; }
public StorePermissionAttribute(SecurityAction action)
: base(action)
{
}
public override IPermission CreatePermission()
{
return null;
}
}
}