KeyContainerPermissionAccessEntry 类

定义

注意

Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}

为特定密钥容器指定访问权限。Specifies access rights for specific key containers. 此类不能被继承。This class cannot be inherited.

public ref class KeyContainerPermissionAccessEntry sealed
public sealed class KeyContainerPermissionAccessEntry
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class KeyContainerPermissionAccessEntry
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class KeyContainerPermissionAccessEntry
type KeyContainerPermissionAccessEntry = class
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type KeyContainerPermissionAccessEntry = class
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type KeyContainerPermissionAccessEntry = class
Public NotInheritable Class KeyContainerPermissionAccessEntry
继承
KeyContainerPermissionAccessEntry
属性

注解

此权限旨在使用户能够在涉及少量密钥时轻松管理密钥容器,或者只向某些密钥授予访问权限。This permission is intended to enable users to easily manage key containers when either a small number of keys is involved, or access is to be granted to only some keys.

构造函数

KeyContainerPermissionAccessEntry(CspParameters, KeyContainerPermissionFlags)

使用指定的加密服务提供程序 (CSP) 参数和访问权限初始化 KeyContainerPermissionAccessEntry 类的新实例。Initializes a new instance of the KeyContainerPermissionAccessEntry class, using the specified cryptographic service provider (CSP) parameters and access permissions.

KeyContainerPermissionAccessEntry(String, KeyContainerPermissionFlags)

使用指定的密钥容器名称和访问权限初始化 KeyContainerPermissionAccessEntry 类的新实例。Initializes a new instance of the KeyContainerPermissionAccessEntry class, using the specified key container name and access permissions.

KeyContainerPermissionAccessEntry(String, String, Int32, String, Int32, KeyContainerPermissionFlags)

使用指定的属性值初始化 KeyContainerPermissionAccessEntry 类的新实例。Initializes a new instance of the KeyContainerPermissionAccessEntry class with the specified property values.

属性

Flags

获取或设置密钥容器权限。Gets or sets the key container permissions.

KeyContainerName

获取或设置密钥容器名称。Gets or sets the key container name.

KeySpec

获取或设置密钥规范。Gets or sets the key specification.

KeyStore

获取或设置密钥存储区的名称。Gets or sets the name of the key store.

ProviderName

获取或设置提供程序名称。Gets or sets the provider name.

ProviderType

获取或设置提供程序类型。Gets or sets the provider type.

方法

Equals(Object)

确定指定的 KeyContainerPermissionAccessEntry 对象是否等于当前实例。Determines whether the specified KeyContainerPermissionAccessEntry object is equal to the current instance.

GetHashCode()

获取适合在哈希算法和类似哈希表的数据结构中使用的当前实例的哈希代码。Gets a hash code for the current instance that is suitable for use in hashing algorithms and data structures such as a hash table.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于