共用方式為


SamlSecurityTokenHandler.WriteAudienceRestrictionCondition 方法

定義

寫入 <saml:AudienceRestriction> 項目。

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

參數

writer
XmlWriter

要用來寫入資料的 XmlWriter

condition
SamlAudienceRestrictionCondition

要寫入的資料。

例外狀況

datanull

-或-

writernull

condition 中指定的ConditionsSamlAudienceRestrictionCondition 屬性為 null 或空白集合。

適用於