Прочетете на английски Редактиране

Споделяне чрез


SamlSecurityTokenHandler.WriteAssertion(XmlWriter, SamlAssertion) Method

Definition

Serializes the specified SAML assertion to the specified XML writer.

C#
protected virtual void WriteAssertion(System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SamlAssertion assertion);

Parameters

writer
XmlWriter

The XmlWriter to use for the serialization.

assertion
SamlAssertion

A SamlAssertion that represents the assertion to serialize.

Exceptions

writer is null.

-or-

assertion is null.

The token encrypting credentials do not have a Symmetric Key specified.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1