SecurityTokenHandler.WriteKeyIdentifierClause Method (XmlWriter, SecurityKeyIdentifierClause)

.NET Framework (current version)

When overridden in a derived class, serializes the specified key identifier clause to XML. The key identifier clause must be of the type supported by the derived class.

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

public virtual void WriteKeyIdentifierClause(
	XmlWriter writer,
	SecurityKeyIdentifierClause securityKeyIdentifierClause


Type: System.Xml.XmlWriter

The XML writer.

Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause

The key identifier clause to serialize.

By default this method throws a NotImplementedException exception.

Override this method to provide the logic to serialize a key identifier clause to XML. If you override this method, you should also override the CanWriteKeyIdentifierClause method.

.NET Framework
Available since 4.5
Return to top