WSTrust13ResponseSerializer.WriteXmlElement 方法

定义

将指定的 RSTR 元素写入该输出流。 基类方法的重写。

public:
 override void WriteXmlElement(System::Xml::XmlWriter ^ writer, System::String ^ elementName, System::Object ^ elementValue, System::IdentityModel::Protocols::WSTrust::RequestSecurityTokenResponse ^ rstr, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public override void WriteXmlElement (System.Xml.XmlWriter writer, string elementName, object elementValue, System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse rstr, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);
override this.WriteXmlElement : System.Xml.XmlWriter * string * obj * System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> unit
Public Overrides Sub WriteXmlElement (writer As XmlWriter, elementName As String, elementValue As Object, rstr As RequestSecurityTokenResponse, context As WSTrustSerializationContext)

参数

writer
XmlWriter

RSTR应被序列化的 XmlWriter 对象.

elementName
String

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

elementValue
Object

元素的值。

rstr
RequestSecurityTokenResponse

将要反序列化的 RequestSecurityTokenResponse 对象。

context
WSTrustSerializationContext

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

例外

rstrnull

writernull

contextnull

elementName 为 null 或为空字符串。

适用于