WSTrustRequestSerializer.WriteXmlElement 方法

定义

当在派生类中重写时,将在 RST 内部写入子元素。

public:
 abstract void WriteXmlElement(System::Xml::XmlWriter ^ writer, System::String ^ elementName, System::Object ^ elementValue, System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ requestSecurityToken, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public abstract void WriteXmlElement (System.Xml.XmlWriter writer, string elementName, object elementValue, System.IdentityModel.Protocols.WSTrust.RequestSecurityToken requestSecurityToken, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);
abstract member WriteXmlElement : System.Xml.XmlWriter * string * obj * System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> unit
Public MustOverride Sub WriteXmlElement (writer As XmlWriter, elementName As String, elementValue As Object, requestSecurityToken As RequestSecurityToken, context As WSTrustSerializationContext)

参数

writer
XmlWriter

RST 应被序列化的 XmlWriter 对象.

elementName
String

要编写的元素的本地名称。

elementValue
Object

元素的值。

requestSecurityToken
RequestSecurityToken

将要反序列化的 RequestSecurityToken 对象。

context
WSTrustSerializationContext

一个 WSTrustSerializationContext,包含当前的序列化上下文。

适用于