Serializes the specified SAML assertion to the specified XML writer.
Assembly: Microsoft.IdentityModel (in Microsoft.IdentityModel.dll)
The XmlWriter to use for the serialization.
A Saml2Assertion that represents the assertion to serialize.
writer is null.
data is null.
The assertion specified by data has both the EncryptingCredentials and ReceivedEncryptingCredentials properties set to null.
There are no statements and no subject in the assertion specified by data. (Both the Subject property and the Statements property are null.) If an assertion does not contain statements, it must contain a subject.
The assertion specified by data contains an authentication, attribute, or authorization decision statement and no subject—these statements require a subject. (The Statements property contains a statement of type Saml2AttributeStatement, Saml2AuthenticationStatement, or Saml2AuthorizationDecisionStatement and the Subject property is null).
The token encrypting credentials do not have a Symmetric Key specified.
Target PlatformsWindows 7, Windows Server 2008 R2, Windows Vista SP2, Windows Server 2008 SP2, Windows Server 2003 SP2 (32-bit or 64-bit)
Copyright © 2008 by Microsoft Corporation. All rights reserved.