Aracılığıyla paylaş


CipherData.GetXml Yöntem

Tanım

Nesnenin XML değerlerini CipherData alır.

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

Döndürülenler

XmlElement Nesnenin XML bilgilerini CipherData temsil eden bir nesne.

Özel durumlar

CipherValue özelliği ve CipherReference özelliği şeklindedirnull.

Örnekler

Aşağıdaki kod örneği, nesnenin yeni bir örneğinin CipherData nasıl oluşturulacağını gösterir.

// Create a new CipherData object.
CipherData^ cipher = gcnew CipherData();
// Assign a byte array to be the CipherValue. This is a
// byte array representing encrypted data.
cipher->CipherValue = gcnew array<Byte>(8);
// 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) {}

Açıklamalar

Bir CipherData nesnenin XML çıktısını almak için bu yöntemi kullanın.

Şunlara uygulanır