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

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


SamlSecurityTokenHandler.WriteCondition(XmlWriter, SamlCondition) Method

Definition

Serializes the specified SamlCondition object.

C#
protected virtual void WriteCondition(System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SamlCondition condition);

Parameters

writer
XmlWriter

The XmlWriter with which to write the data.

condition
SamlCondition

The data to write. By default, only SamlAudienceRestrictionCondition and SamlDoNotCacheCondition are supported.

Exceptions

condition is null.

-or-

writer is null.

condition is not supported. . By default, only SamlAudienceRestrictionCondition and SamlDoNotCacheCondition are supported.

Remarks

By default, the method invokes either the WriteAudienceRestrictionCondition or WriteDoNotCacheCondition method to serialize the condition based on the type of SamlCondition 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