Share via


CipherData.CipherValue Propriété

Définition

Obtient ou définit l'élément <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()

Valeur de propriété

Byte[]

Tableau d'octets qui représente l'élément <CipherValue>.

Exceptions

La propriété CipherValue a la valeur null.

La propriété CipherValue a été définie plus d'une fois.

Exemples

L'exemple suivant illustre la création d'une nouvelle instance de la classe 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)

Remarques

La valeur est des données chiffrées.

Notes

L’élément <CipherData> peut avoir un CipherReference ou un CipherValue élément enfant, mais pas les deux. Un CryptographicException est levée si les deux sont affectés à un CipherData objet.

S’applique à