CspKeyContainerInfo.CryptoKeySecurity 属性

定义

获取 CryptoKeySecurity 对象,该对象表示容器的访问权限和审核规则。Gets a CryptoKeySecurity object that represents access rights and audit rules for a container.

public:
 property System::Security::AccessControl::CryptoKeySecurity ^ CryptoKeySecurity { System::Security::AccessControl::CryptoKeySecurity ^ get(); };
public System.Security.AccessControl.CryptoKeySecurity CryptoKeySecurity { get; }
member this.CryptoKeySecurity : System.Security.AccessControl.CryptoKeySecurity
Public ReadOnly Property CryptoKeySecurity As CryptoKeySecurity

属性值

CryptoKeySecurity

表示容器访问权限及审核规则的 CryptoKeySecurity 对象。A CryptoKeySecurity object that represents access rights and audit rules for a container.

例外

该密钥类型不受支持。The key type is not supported.

无法找到加密服务提供程序。The cryptographic service provider cannot be found.

- 或 --or-

未找到密钥容器。The key container was not found.

注解

使用 CspKeyContainerInfo 属性来检索 CryptoKeySecurity 对象,该对象管理 (dacl) 和系统访问控制列表 (sacl) 为容器创建随机访问控制列表。Use the CspKeyContainerInfo property to retrieve the CryptoKeySecurity object that manages the creation of discretionary access control lists (DACLS) and system access control lists (SACLS) for a container.

适用于