CipherData.GetXml 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得物件的 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 和 屬性 CipherReference 為 null。
範例
以下程式碼範例示範如何建立該物件的新實例 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。