SerializableTokenWrapper.ReadToken Method

Converts XML representing a security token to a SecurityToken object

Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Public Class SomeType1
    Inherits SecurityToken
End Class
Dim reader As XmlReader
Dim returnValue As SomeType1
Dim serializableTokenWrapper1 As SerializableTokenWrapper(Of SomeType1)
returnValue = serializableTokenWrapper1.ReadToken(reader)

Syntax

'Declaration
Public Function ReadToken( _
    ByVal reader As XmlReader _
) As TSecurityToken
public TSecurityToken ReadToken(
    XmlReader reader
);
public:
TSecurityToken ReadToken(
    XmlReader^ reader
);
public TSecurityToken ReadToken(
    XmlReader reader
);
JScript does not support Generics.

Parameters

  • reader
    An XmlReader that is positioned at the start of the XML element representing a SecurityToken or "<null />".

Return Value

A SecurityToken that is the representation of the XML.

Remarks

If the XmlReader points to "<null />" then the SecurityToken returned would be null.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

SerializableTokenWrapper Class
SerializableTokenWrapper Members
Microsoft.Web.Services3.Security Namespace