Export (0) Print
Expand All

SamlSubject.WriteXml Method

Writes the <saml:Subject> element into the specified XML serializer.

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

public virtual void WriteXml(
	XmlDictionaryWriter writer,
	SamlSerializer samlSerializer,
	SecurityTokenSerializer keyInfoSerializer
)

Parameters

writer
Type: System.Xml.XmlDictionaryWriter

A XmlDictionaryWriter to write the <saml:Subject> element.

samlSerializer
Type: System.IdentityModel.Tokens.SamlSerializer

A SamlSerializer that is capable of writing XML elements in a SAML assertion.

keyInfoSerializer
Type: System.IdentityModel.Selectors.SecurityTokenSerializer

A SecurityTokenSerializer that is capable of writing KeyInfo clauses.

Use the WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer) method to write the properties of the current SamlSubject instance into a <saml:Subject> element.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft