Share via


SamlSerializer.WriteAttribute(XmlWriter, SamlAttribute) Method

Definition

Writes the <saml:Attribute> element.

public virtual void WriteAttribute (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.Saml.SamlAttribute attribute);
abstract member WriteAttribute : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml.SamlAttribute -> unit
override this.WriteAttribute : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml.SamlAttribute -> unit
Public Overridable Sub WriteAttribute (writer As XmlWriter, attribute As SamlAttribute)

Parameters

writer
XmlWriter

A XmlWriter to serialize the SamlAttribute.

attribute
SamlAttribute

The SamlAttribute to serialize.

Exceptions

if attribute is null.

if any attribute values are null or empty.

Applies to