Partager via


UsernameTokenProvider.GetToken Method

Gets a UsernameToken security token using the user name and password associated with this UsernameTokenProvider.

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

Usage

'Usage
Dim returnValue As UsernameToken
Dim usernameTokenProvider1 As UsernameTokenProvider
returnValue = usernameTokenProvider1.GetToken()

Syntax

'Declaration
Public Overrides Function GetToken() As UsernameToken
public override UsernameToken GetToken();
public:
virtual UsernameToken^ GetToken() override;
public override UsernameToken GetToken();
public override function GetToken() : UsernameToken;

Return Value

A UsernameToken security token that represents the user name and password associated with this UsernameTokenProvider.

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

UsernameTokenProvider Class
UsernameTokenProvider Members
Microsoft.Web.Services3.Design Namespace