Freigeben über


Saml2SecurityTokenHandler.WriteNameId(XmlWriter, Saml2NameIdentifier) Methode

Definition

Schreibt das <saml:NameID>-Element.

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

Parameter

writer
XmlWriter

Die XmlWriter, mit der der Saml2NameIdentifier serialisiert werden soll.

data
Saml2NameIdentifier

Das zu serialisierende Saml2NameIdentifier.

Ausnahmen

data ist null.

- oder -

writer ist null.

Für die Saml2NameIdentifier-Verschlüsselungsanmeldeinformationen muss ein symmetrischer Schlüssel angegeben werden.

Gilt für: