SamlSecurityTokenHandler.WriteAttributeValue Method (XmlWriter, String, SamlAttribute)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Writes the saml:Attribute value.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual void WriteAttributeValue(
	XmlWriter writer,
	string value,
	SamlAttribute attribute
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter with which to write.

value
Type: System.String

A string that contains the attribute value to be written.

attribute
Type: System.IdentityModel.Tokens.SamlAttribute

A SamlAttribute that represents the attribute whose value is being written.

Exception Condition
ArgumentNullException

writer is null.

By default the method writes the value as a string.

.NET Framework
Available since 4.5
Return to top
Show: