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) {}
注解
使用此方法输出对象的 XML CipherData 。