SamlEvidence.WriteXml 方法

定义

将证据写入指定的 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

samlSerializer
SamlSerializer

一个 SamlSerializer,它能够写入 SAML 断言中的 XML 元素。

keyInfoSerializer
SecurityTokenSerializer

一个 SecurityTokenSerializer,它能够写入 KeyInfo 子句。

例外

writernull

samlSerializernull

注解

使用 WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer) 方法将当前 SamlEvidence 实例写入 <saml:Evidence> 元素中。

适用于