CipherData.CipherValue 屬性
本文內容
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 <CipherValue>
項目。
public:
property cli::array <System::Byte> ^ CipherValue { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
public byte[]? CipherValue { get; set; }
public byte[] CipherValue { get; set; }
member this.CipherValue : byte[] with get, set
Public Property CipherValue As Byte()
Byte[]
表示 <CipherValue>
項目的位元組陣列。
CipherValue 屬性被設定為 null
。
CipherValue 屬性被設定超過一次。
下列程式碼範例示範如何建立 CipherData 類別的新執行個體。
// Create a new CipherData object using a byte array to represent encrypted data.
array<Byte>^sampledata = gcnew array<Byte>(8);
CipherData ^ cd = gcnew CipherData( sampledata );
// Create a new CipherData object using a byte array to represent encrypted data.
Byte[] sampledata = new byte[8];
CipherData cd = new CipherData(sampledata);
' Create a new CipherData object using a byte array to represent encrypted data.
Dim sampledata(7) As Byte
Dim cd As New CipherData(sampledata)
此值是加密的數據。
注意
專案<CipherData>
可以有 或 CipherValue 子專案,但不能同時有CipherReference兩者。
CryptographicException如果兩者都指派給 CipherData 物件,則會擲回 。
適用於
產品 | 版本 |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |