Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
)

Parameters

handler
Type: System.IdentityModel.Tokens::SecurityTokenHandler^

The token handler to add to the collection.

.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft