SamlSerializer.WriteAttribute(XmlWriter, SamlAttribute) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.