SecurityTokenSerializer.CanWriteKeyIdentifierClauseCore Method (SecurityKeyIdentifierClause)

 

Determines whether this serializer can write the specified key identifier clause. Called by the base class.

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

protected abstract bool CanWriteKeyIdentifierClauseCore(
	SecurityKeyIdentifierClause keyIdentifierClause
)

Parameters

keyIdentifierClause
Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause that represents the key identifier clause to write.

Return Value

Type: System.Boolean

true when this serializer can write the specified key identifier clause; otherwise, false.

Exception Condition
ArgumentNullException

keyIdentifierClause is null.

Classes that derive from the SecurityTokenSerializer class must override the CanWriteKeyIdentifierClauseCore(SecurityKeyIdentifierClause) method. The CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause) method calls the CanWriteKeyIdentifierClauseCore(SecurityKeyIdentifierClause) method.

.NET Framework
Available since 3.0
Return to top
Show: