共用方式為


SamlAudienceRestrictionCondition.WriteXml 方法

定義

<AudienceRestrictionCondition> 項目寫入至指定的 XML 序列化程式。

public:
 override void WriteXml(System::Xml::XmlDictionaryWriter ^ writer, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer);
public override void WriteXml (System.Xml.XmlDictionaryWriter writer, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer);
override this.WriteXml : System.Xml.XmlDictionaryWriter * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer -> unit
Public Overrides Sub WriteXml (writer As XmlDictionaryWriter, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer)

參數

writer
XmlDictionaryWriter

要寫入 XmlDictionaryWriter 項目的 <AudienceRestrictionCondition>

samlSerializer
SamlSerializer

SamlSerializer,它能夠使用 SAML 判斷提示寫入 SAML 規格內所定義的 XML 項目。

keyInfoSerializer
SecurityTokenSerializer

SecurityTokenSerializer,它可以寫入 KeyInfo 子句。

例外狀況

writernull

-或-

samlSerializernull

適用於