CipherData.GetXml Metoda

Definicja

Pobiera wartości XML dla CipherData obiektu.

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

Zwraca

XmlElement Obiekt reprezentujący informacje XML dla CipherData obiektu.

Wyjątki

Właściwość CipherValue i CipherReference właściwość to null.

Przykłady

W poniższym przykładzie kodu pokazano, jak utworzyć nowe wystąpienie CipherData obiektu.

// Create a new CipherData object.
CipherData^ cipher = gcnew CipherData();
// Assign a byte array to be the CipherValue. This is a
// byte array representing encrypted data.
cipher->CipherValue = gcnew array<Byte>(8);
// 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) {}

Uwagi

Ta metoda umożliwia wyprowadzenie kodu XML dla CipherData obiektu.

Dotyczy