SecureStorePermissionAttribute SecureStorePermissionAttribute SecureStorePermissionAttribute Class

Definition

Allows security actions for a SecureStorePermission instance to be applied to code using declarative security. This class cannot be inherited.

public ref class SecureStorePermissionAttribute sealed : System::Security::Permissions::CodeAccessSecurityAttribute
[System.AttributeUsage(System.AttributeTargets.All, AllowMultiple=true)]
public sealed class SecureStorePermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
Public NotInheritable Class SecureStorePermissionAttribute
Inherits CodeAccessSecurityAttribute
Inheritance
SecureStorePermissionAttributeSecureStorePermissionAttributeSecureStorePermissionAttribute
Attributes

Remarks

The scope of the declaration that is allowed depends on the SecurityAction that is used.

The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. For imperative security, use the corresponding permission class.

Constructors

SecureStorePermissionAttribute(SecurityAction) SecureStorePermissionAttribute(SecurityAction) SecureStorePermissionAttribute(SecurityAction)

Initializes a new instance of the SecureStorePermissionAttribute class.

Properties

Access Access Access

Gets or sets the level of access that this SecureStorePermissionAttribute object has.

Unrestricted Unrestricted Unrestricted

Gets or sets a value that indicates whether full permission to the resource protected by the attribute is declared.

Methods

CreatePermission() CreatePermission() CreatePermission()

Creates and returns a new SecureStorePermission object.

Applies to