CipherData.GetXml Méthode

Définition

Obtient les valeurs XML de l’objet CipherData .

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

Retours

Objet XmlElement qui représente les informations XML de l’objet CipherData .

Exceptions

La CipherValue propriété et la CipherReference propriété sont null.

Exemples

L’exemple de code suivant montre comment créer une instance de l’objet CipherData .

// 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) {}

Remarques

Utilisez cette méthode pour générer du code XML pour un CipherData objet.

S’applique à