共用方式為


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

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

elementName
String

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

elementValue
Object

項目的值。

requestSecurityToken
RequestSecurityToken

正在序列化的 RequestSecurityToken 物件。

context
WSTrustSerializationContext

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

適用於