Bahasa

CipherData.GetXml Metode

Definisi

Mendapatkan nilai XML untuk objek tersebut CipherData .

public:
 System::Xml::XmlElement ^ GetXml();
public System.Xml.XmlElement GetXml();
member this.GetXml : unit -> System.Xml.XmlElement
Public Function GetXml () As XmlElement

Mengembalikan

Objek XmlElement yang mewakili informasi XML untuk objek tersebut CipherData .

Pengecualian

Properti CipherValue dan CipherReference properti adalah null.

Contoh

Contoh kode berikut menunjukkan cara membuat instans CipherData baru objek.

// Create a new CipherData object.
CipherData cd = new CipherData();
// Assign a byte array to be the CipherValue. This is a byte array representing encrypted data.
cd.CipherValue = new byte[8];
' Create a new CipherData object.
Dim cd As New CipherData
' Assign a byte array to the CipherValue.
cd.CipherValue = New Byte(7) {}

Keterangan

Gunakan metode ini untuk mengeluarkan XML untuk objek CipherData .

Berlaku untuk