Partager via


Méthode WSTrustResponseSerializer.CanRead

When implemented in the derived class checks if the given reader is positioned at a RequestSecurityTokenResponse element.

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

Utilisation

    Dim instance As WSTrustResponseSerializer
Dim reader As XmlReader
Dim returnValue As Boolean

returnValue = instance.CanRead(reader)

Syntaxe

'Déclaration
Public MustOverride Function CanRead ( _
    reader As XmlReader _
) As Boolean
public abstract bool CanRead (
    XmlReader reader
)
public:
virtual bool CanRead (
    XmlReader^ reader
) abstract
public abstract boolean CanRead (
    XmlReader reader
)
public abstract function CanRead (
    reader : XmlReader
) : boolean

Paramètres

  • reader
    The reader to read from.

Valeur de retour

Returns Boolean. true if the reader is positioned at an RSTR element that this serializer can read; otherwise, false.

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