Redigera

Dela via


SecurityTokenSerializer.WriteKeyIdentifierClause Method

Definition

Writes the specified key identifier clause using the specified XML writer.

public:
 void WriteKeyIdentifierClause(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause);
public void WriteKeyIdentifierClause (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause);
member this.WriteKeyIdentifierClause : System.Xml.XmlWriter * System.IdentityModel.Tokens.SecurityKeyIdentifierClause -> unit
Public Sub WriteKeyIdentifierClause (writer As XmlWriter, keyIdentifierClause As SecurityKeyIdentifierClause)

Parameters

writer
XmlWriter

A XmlWriter to write the key identifier clause.

keyIdentifierClause
SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause that represents the key identifier clause to write.

Exceptions

keyIdentifierClause is null.

-or-

writer is null.

Remarks

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.

Applies to