Partager via


Méthode WSTrustFeb2005ResponseSerializer.ReadXml

Deserializes the RSTR from the XmlReader to a RequestSecurityTokenResponse object.

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

Utilisation

    Dim instance As WSTrustFeb2005ResponseSerializer
Dim reader As XmlReader
Dim context As WSTrustSerializationContext
Dim returnValue As RequestSecurityTokenResponse

returnValue = instance.ReadXml(reader, context)

Syntaxe

'Déclaration
Public Overrides Function ReadXml ( _
    reader As XmlReader, _
    context As WSTrustSerializationContext _
) As RequestSecurityTokenResponse
public override RequestSecurityTokenResponse ReadXml (
    XmlReader reader,
    WSTrustSerializationContext context
)
public:
virtual RequestSecurityTokenResponse^ ReadXml (
    XmlReader^ reader, 
    WSTrustSerializationContext^ context
) override
public RequestSecurityTokenResponse ReadXml (
    XmlReader reader, 
    WSTrustSerializationContext context
)
public override function ReadXml (
    reader : XmlReader, 
    context : WSTrustSerializationContext
) : RequestSecurityTokenResponse

Paramètres

  • reader
    XML reader over the RSTR
  • context
    Current Serialization context.

Valeur de retour

RequestSecurityTokenResponse object if the deserialization was successful

Exceptions

Type d'exception Condition
WSTrustSerializationException

There was an error parsing the RSTR

ArgumentNullException

The given reader or context parameter is null

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