Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
WriteKeyIdentifierClause Method

SecurityTokenHandler.WriteKeyIdentifierClause Method

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5
© 2015 Microsoft