WriteXml Method
Collapse the table of content
Expand the table of content

SamlConditions.WriteXml Method (XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer)

 

Writes the <saml:Conditions> 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:Conditions> 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.

Exception Condition
ArgumentNullException

writer is null

-or-

samlSerializer is null.

Use the WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer) method to write the current SamlConditions instance into a <saml:Conditions> element.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft