Partager via


Méthode WSFederationSerializer.CreateResponse

Converts a SignInResponseMessage to a RequestSecurityTokenResponse object.

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

Utilisation

    Dim instance As WSFederationSerializer
Dim message As WSFederationMessage
Dim context As WSTrustSerializationContext
Dim returnValue As RequestSecurityTokenResponse

returnValue = instance.CreateResponse(message, context)

Syntaxe

'Déclaration
Public Overridable Function CreateResponse ( _
    message As WSFederationMessage, _
    context As WSTrustSerializationContext _
) As RequestSecurityTokenResponse
public virtual RequestSecurityTokenResponse CreateResponse (
    WSFederationMessage message,
    WSTrustSerializationContext context
)
public:
virtual RequestSecurityTokenResponse^ CreateResponse (
    WSFederationMessage^ message, 
    WSTrustSerializationContext^ context
)
public RequestSecurityTokenResponse CreateResponse (
    WSFederationMessage message, 
    WSTrustSerializationContext context
)
public function CreateResponse (
    message : WSFederationMessage, 
    context : WSTrustSerializationContext
) : RequestSecurityTokenResponse

Paramètres

  • context
    The current Serialization context.

Valeur de retour

Returns RequestSecurityTokenResponse.

Exceptions

Type d'exception Condition
ArgumentNullException

One of the parameters is null.

ArgumentException

The message is not of type SignInResponseMessage or the SignInResponseMessage is missing required information to construct a valid RequestSecurityTokenResponse.

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 WSFederationSerializer
Membres WSFederationSerializer
Espace de noms Microsoft.IdentityModel.Protocols.WSFederation