共用方式為


Saml2SecurityTokenHandler.WriteAuthenticationContext 方法

定義

寫入 <saml:AuthnContext> 項目。

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

參數

writer
XmlWriter

要用來寫入資料的 XmlWriter

data
Saml2AuthenticationContext

要寫入的資料。

例外狀況

datanull

-或-

writernull

適用於