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

Conditionscondition 中指定的 SamlAudienceRestrictionCondition 属性是 null 或为空集合。

适用于