CngProperty 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 CngProperty 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| CngProperty(String, Byte[], CngPropertyOptions) |
初始化一個新的結構體實例 CngProperty 。 |
| CngProperty(String, ReadOnlySpan<Byte>, CngPropertyOptions) |
CngProperty(String, Byte[], CngPropertyOptions)
初始化一個新的結構體實例 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)
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
- value
- ReadOnlySpan<Byte>
- options
- CngPropertyOptions