Export (0) Print
Expand All

RsaSecurityTokenHandler.WriteToken Method (XmlWriter, SecurityToken)

.NET Framework 4.5

Serializes an RSA security token to XML.

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override void WriteToken(
	XmlWriter writer,
	SecurityToken token
)

Parameters

writer
Type: System.Xml.XmlWriter

The XML writer to use to serialize the token.

token
Type: System.IdentityModel.Tokens.SecurityToken

The RSA security token to serialize.

ExceptionCondition
ArgumentNullException

token is null.

-or-

writer is null.

ArgumentException

token is not assignable from RsaSecurityToken.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft