WSTrust13RequestSerializer.WriteXmlElement(XmlWriter, String, Object, RequestSecurityToken, WSTrustSerializationContext) 方法

定义

将指定的 RST 参数写入输出流。Writes the specified RST parameter to the outgoing stream. 基类方法的重写。Override of the base class method.

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

参数

writer
XmlWriter

RST 应被序列化的 XmlWriter 对象.The XmlWriter object to which the RST is being serialized.

elementName
String

要编写的元素的本地名称。The local name of the element to be written.

elementValue
Object

元素的值。The value of the element.

rst
RequestSecurityToken

将要反序列化的 RequestSecurityToken 对象。The RequestSecurityToken object that is being serialized.

context
WSTrustSerializationContext

一个 WSTrustSerializationContext,包含当前的序列化上下文。A WSTrustSerializationContext that contains the current serialization context.

例外

elementNamenull 或空字符串。elementName is null or an empty string.

writerrstcontextnullwriter, rst, or context is null.

适用于