Share via


Propriété ServiceConfiguration.SecurityTokenHandlers

Gets or sets the collection of T:Microsoft.IdentityModel.Tokens.SecurityTokenHandler objects used for serializing and validating tokens found in WS-Trust messages. If user wants to register their own token handler, they can simply add their own handler to this collection.

Espace de noms: Microsoft.IdentityModel.Configuration
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    Dim instance As ServiceConfiguration
Dim value As SecurityTokenHandlerCollection

value = instance.SecurityTokenHandlers

Syntaxe

'Déclaration
Public ReadOnly Property SecurityTokenHandlers As SecurityTokenHandlerCollection
public SecurityTokenHandlerCollection SecurityTokenHandlers { get; }
public:
property SecurityTokenHandlerCollection^ SecurityTokenHandlers {
    SecurityTokenHandlerCollection^ get ();
}
/** @property */
public SecurityTokenHandlerCollection get_SecurityTokenHandlers ()
public function get SecurityTokenHandlers () : SecurityTokenHandlerCollection

Valeur de la propriété

A collection of T:Microsoft.IdentityModel.Tokens.SecurityTokenHandler objects.

Exceptions

Type d'exception Condition

Cohérence de thread

Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

Voir aussi

Référence

Classe ServiceConfiguration
Membres ServiceConfiguration
Espace de noms Microsoft.IdentityModel.Configuration