SecurityTokenSerializer.CanWriteKeyIdentifierCore Method (SecurityKeyIdentifier)


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

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

protected abstract bool CanWriteKeyIdentifierCore(
	SecurityKeyIdentifier keyIdentifier


Type: System.IdentityModel.Tokens.SecurityKeyIdentifier

A SecurityKeyIdentifier that represents the key identifier to write.

Return Value

Type: System.Boolean

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

Exception Condition

keyIdentifier is null.

Classes that derive from the SecurityTokenSerializer class must override the CanWriteKeyIdentifierCore(SecurityKeyIdentifier) method. The CanWriteKeyIdentifier(SecurityKeyIdentifier) method calls the CanWriteKeyIdentifierCore(SecurityKeyIdentifier) method.

.NET Framework
Available since 3.0
Return to top