共用方式為


Saml2SecurityTokenHandler.WriteAudienceRestriction 方法

定義

寫入 <saml:AudienceRestriction> 項目。

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

參數

writer
XmlWriter

要用來寫入資料的 XmlWriter

data
Saml2AudienceRestriction

要寫入的資料。

例外狀況

datanull

-或-

writernull

適用於