SecurityTokenHandlerCollection.AddOrReplace Method (SecurityTokenHandler)

.NET Framework (current version)

Adds the specified token handler to this collection. If a handler with the same token type identifier as the specified handler already exists in the collection, it is replaced with the specified handler.

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

public void AddOrReplace(
	SecurityTokenHandler handler


Type: System.IdentityModel.Tokens.SecurityTokenHandler

The token handler to add to the collection.

.NET Framework
Available since 4.5
Return to top