SamlSecurityTokenHandler.WriteCondition(XmlWriter, SamlCondition) 方法

定义

序列化指定的 SamlCondition 对象。

protected:
 virtual void WriteCondition(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SamlCondition ^ condition);
protected virtual void WriteCondition (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SamlCondition condition);
abstract member WriteCondition : System.Xml.XmlWriter * System.IdentityModel.Tokens.SamlCondition -> unit
override this.WriteCondition : System.Xml.XmlWriter * System.IdentityModel.Tokens.SamlCondition -> unit
Protected Overridable Sub WriteCondition (writer As XmlWriter, condition As SamlCondition)

参数

writer
XmlWriter

用于写数据的 XmlWriter

condition
SamlCondition

要写入的数据。 默认情况下,只支持 SamlAudienceRestrictionConditionSamlDoNotCacheCondition

例外

conditionnull

writernull

不支持 condition。 . 默认情况下,只支持 SamlAudienceRestrictionConditionSamlDoNotCacheCondition

注解

默认情况下, 方法调用 WriteAudienceRestrictionConditionWriteDoNotCacheCondition 方法,以根据指定的 的类型 SamlCondition 序列化条件。

适用于