CipherData.GetXml 方法

定义

获取对象的 CipherData XML 值。

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

返回

一个 XmlElement 对象,表示对象的 CipherData XML 信息。

例外

示例

下面的代码示例演示如何创建对象的新实例 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) {}

注解

使用此方法输出对象的 XML CipherData

适用于