WSTrust13ResponseSerializer.WriteXmlElement Method

Definition

Writes the specified RSTR element 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::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)

Parameters

writer
XmlWriter

The XmlWriter object to which the RSTR is being serialized.

elementName
String

The local name of the element to be written.

elementValue
Object

The value of the element.

rstr
RequestSecurityTokenResponse

The RequestSecurityTokenResponse object that is being serialized.

context
WSTrustSerializationContext

A WSTrustSerializationContext that contains the current serialization context.

Exceptions

rstr is null.

-or-

writer is null.

-or-

context is null.

elementName is null or an empty string.

Applies to