語言

CngProperty 建構函式

定義

初始化 CngProperty 類別的新執行個體。

多載

CngProperty(String, Byte[], CngPropertyOptions)

來源:
CngProperty.cs
來源:
CngProperty.cs
來源:
CngProperty.cs
來源:
CngProperty.cs
來源:
CngProperty.cs

初始化一個新的結構體實例 CngProperty 。

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

要初始化的屬性名稱。

value
Byte[]

要初始化的屬性值。

options
CngPropertyOptions

一個位元組合的列舉值,指定屬性的儲存方式。

例外狀況

name 是 null。

備註

以特定旗 CngPropertyOptions 標集合儲存的屬性,取回時也需相同標示。

適用於

CngProperty(String, ReadOnlySpan<Byte>, CngPropertyOptions)

來源:
CngProperty.cs
public:
 CngProperty(System::String ^ name, ReadOnlySpan<System::Byte> value, System::Security::Cryptography::CngPropertyOptions options);
public CngProperty(string name, ReadOnlySpan<byte> value, System.Security.Cryptography.CngPropertyOptions options);
new System.Security.Cryptography.CngProperty : string * ReadOnlySpan<byte> * System.Security.Cryptography.CngPropertyOptions -> System.Security.Cryptography.CngProperty
Public Sub New (name As String, value As ReadOnlySpan(Of Byte), options As CngPropertyOptions)

參數

name
String

適用於