Condividi tramite


SerializableTokenWrapper.WriteToken Method

Converts the specified SecurityToken to its XML representation and writes it out to the stream specified by XmlWriter.

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

Usage

'Usage
Public Class SomeType1
    Inherits SecurityToken
End Class
Dim writer As XmlWriter
Dim token As SomeType1
Dim serializableTokenWrapper1 As SerializableTokenWrapper(Of SomeType1)
serializableTokenWrapper1.WriteToken(writer, token)

Syntax

'Declaration
Public Sub WriteToken( _
    ByVal writer As XmlWriter, _
    ByVal token As TSecurityToken _
)
public void WriteToken(
    XmlWriter writer, 
    TSecurityToken token
);
public:
void WriteToken(
    XmlWriter^ writer,
    TSecurityToken token
);
public void WriteToken(
    XmlWriter writer, 
    TSecurityToken token
);
JScript does not support Generics.

Parameters

  • writer
    The XmlWriter to which the SecurityToken object (pointed to by the token parameter) is serialized.
  • token
    The SecurityToken that needs to be serialized.

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