KeyContainerPermissionAttribute
Allows security actions for KeyContainerPermission to be applied to code using declarative security. This class cannot be inherited.
namespace System.Security.Permissions
{
[Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public sealed class KeyContainerPermissionAttribute : CodeAccessSecurityAttribute
{
public string KeyStore { get; set; }
public string ProviderName { get; set; }
public int ProviderType { get; set; }
public string KeyContainerName { get; set; }
public int KeySpec { get; set; }
public KeyContainerPermissionFlags Flags { get; set; }
public KeyContainerPermissionAttribute(SecurityAction action)
: base(action)
{
}
public override IPermission CreatePermission()
{
return null;
}
}
}