共用方式為


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

XmlWriter 物件,RSTR 正序列化至其中。

elementName
String

要寫入之項目的區域名稱。

elementValue
Object

項目的值。

context
WSTrustSerializationContext

WSTrustSerializationContext,包含目前序列化內容。

例外狀況

rstrnull

-或-

writernull

-或-

contextnull

elementName 是 null 或空字串。

適用於