CngExportPolicies 枚举

定义

指定密钥的密钥导出策略。Specifies the key export policies for a key.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class CngExportPolicies
[System.Flags]
public enum CngExportPolicies
type CngExportPolicies = 
Public Enum CngExportPolicies
继承
CngExportPolicies
属性

字段

AllowArchiving 4

私钥可以导出一次以用于存档。The private key can be exported one time for archiving purposes.

AllowExport 1

私钥可以导出多次。The private key can be exported multiple times.

AllowPlaintextArchiving 8

私钥可以纯文本形式导出一次。The private key can be exported one time as plaintext.

AllowPlaintextExport 2

私钥可以纯文本形式导出多次。The private key can be exported multiple times as plaintext.

None 0

未建立导出策略。No export policies are established. 可以导出密钥,而无任何限制。Key export is allowed without restriction.

注解

此类由ExportPolicy属性CngKeyCreationParameters和类使用。This class is used by the ExportPolicy property and the CngKeyCreationParameters class.

适用于