語言

WSTrustFeb2005ResponseSerializer.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

元素的值。

context
WSTrustSerializationContext

WSTrustSerializationContext A 包含目前序列化上下文。

例外狀況

rstr 是 null。

-或-

writer 是 null。

-或-

context 是 null。

elementName 是 null 空字串。

適用於