SecurityTokenSerializer.WriteKeyIdentifierClause Method (XmlWriter, SecurityKeyIdentifierClause)

 
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 specified key identifier clause using the specified XML writer.

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

public void WriteKeyIdentifierClause(
	XmlWriter writer,
	SecurityKeyIdentifierClause keyIdentifierClause
)

Parameters

writer
Type: System.Xml.XmlWriter

A XmlWriter to write the key identifier clause.

keyIdentifierClause
Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause that represents the key identifier clause to write.

Exception Condition
ArgumentNullException

keyIdentifierClause is null.

-or-

writer is null.

Classes that derive from the SecurityTokenSerializer class must override the WriteKeyIdentifierClauseCore(XmlWriter, SecurityKeyIdentifierClause) method. The WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) method calls the WriteKeyIdentifierClauseCore(XmlWriter, SecurityKeyIdentifierClause) method.

.NET Framework
Available since 3.0
Return to top
Show: