Share via


CipherData.CipherValue Proprietà

Definizione

Ottiene o imposta l'elemento <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()

Valore della proprietà

Byte[]

Matrice di byte che rappresenta l'elemento <CipherValue>.

Eccezioni

La proprietà CipherValue è stata impostata su null.

La proprietà CipherValue è stata impostata più volte.

Esempio

Nell'esempio di codice seguente viene illustrato come creare una nuova istanza della 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)

Commenti

Il valore è costituito da dati crittografati.

Nota

L'elemento <CipherData> può avere un elemento o figlio CipherReferenceCipherValue , ma non entrambi. Viene CryptographicException generata un'eccezione se entrambi vengono assegnati a un CipherData oggetto .

Si applica a