共用方式為


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 來串行化條件。

適用於