CngProperty(String, Byte[], CngPropertyOptions) 构造函数
定义
初始化 CngProperty 类的新实例。Initializes a new instance of the CngProperty class.
public:
CngProperty(System::String ^ name, cli::array <System::Byte> ^ value, System::Security::Cryptography::CngPropertyOptions options);
public CngProperty (string name, byte[] value, System.Security.Cryptography.CngPropertyOptions options);
public CngProperty (string name, byte[]? value, System.Security.Cryptography.CngPropertyOptions options);
new System.Security.Cryptography.CngProperty : string * byte[] * System.Security.Cryptography.CngPropertyOptions -> System.Security.Cryptography.CngProperty
Public Sub New (name As String, value As Byte(), options As CngPropertyOptions)
参数
- name
- String
要初始化的属性名。The property name to initialize.
- value
- Byte[]
要初始化的属性值。The property value to initialize.
- options
- CngPropertyOptions
指定如何存储属性的枚举值的按位组合。A bitwise combination of the enumeration values that specify how the property is stored.
例外
name 为 null。name is null.
注解
使用特定标志集存储的属性 CngPropertyOptions 在检索时需要相同的标志集。Properties that are stored with a specific set of CngPropertyOptions flags require the same set of flags when they are retrieved.