共用方式為


SamlSubject.WriteXml 方法

定義

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

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

參數

writer
XmlDictionaryWriter

要寫入 XmlDictionaryWriter 項目的 <saml:Subject>

samlSerializer
SamlSerializer

SamlSerializer,它能夠將 XML 元素寫入至 SAML 判斷提示。

keyInfoSerializer
SecurityTokenSerializer

SecurityTokenSerializer,它可以寫入 KeyInfo 子句。

備註

您可以使用 WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer) 方法將目前 SamlSubject 執行個體的屬性寫入至 <saml:Subject> 項目中。

適用於