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 資訊的物件。

例外狀況

屬性 CipherValue 和 屬性 CipherReferencenull

範例

以下程式碼範例示範如何建立該物件的新實例 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) {}

備註

使用此方法來輸出物件的 CipherData XML。

適用於