SamlSecurityTokenHandler.CreateXmlStringFromAttributes Method (IEnumerable<SamlAttribute>)

.NET Framework (current version)

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

Builds an XML formatted string from a collection of SAML 1.1 attributes that represent the Actor.

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

protected virtual string CreateXmlStringFromAttributes(
	IEnumerable<SamlAttribute> attributes


Type: System.Collections.Generic.IEnumerable<SamlAttribute>

An enumeration of type SamlAttribute that contains the attributes.

Return Value

Type: System.String

A well-formed XML string constructed using the attributes.

The string is of the form "<Actor><Attribute name, ns><AttributeValue>...</AttributeValue>, ...</Attribute>...</Actor>"

.NET Framework
Available since 4.5
Return to top