Export (0) Print
Expand All

WSTrust13ResponseSerializer.WriteXmlElement Method

.NET Framework 4.6 and 4.5

Writes the specified RSTR element to the outgoing stream. Override of the base class method.

Namespace:  System.IdentityModel.Protocols.WSTrust
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override void WriteXmlElement(
	XmlWriter writer,
	string elementName,
	Object elementValue,
	RequestSecurityTokenResponse rstr,
	WSTrustSerializationContext context
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter object to which the RSTR is being serialized.

elementName
Type: System.String

The local name of the element to be written.

elementValue
Type: System.Object

The value of the element.

rstr
Type: System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse

The RequestSecurityTokenResponse object that is being serialized.

context
Type: System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext

A WSTrustSerializationContext that contains the current serialization context.

ExceptionCondition
ArgumentNullException

rstr is null.

-or-

writer is null.

-or-

context is null.

ArgumentException

elementName is null or an empty string.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft