Share via


SecurityTokenServiceClient.BeginRequestSecurityToken Method

Begins an asynchronous security token request to a security token service.

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Public Class securityTokenServiceClientImplementation
    Inherits SecurityTokenServiceClient
        Protected Overrides Function BeginRequestSecurityToken(request As SecurityTokenMessage, _
            methodName As String, _
            callback As AsyncCallback, _
            state As Object)
            MyBase.BeginRequestSecurityToken(request, methodName, callback, state)
        End Function
End Class

Syntax

'Declaration
Protected Function BeginRequestSecurityToken( _
    ByVal request As SecurityTokenMessage, _
    ByVal methodName As String, _
    ByVal callback As AsyncCallback, _
    ByVal state As Object _
) As IAsyncResult
protected IAsyncResult BeginRequestSecurityToken(
    SecurityTokenMessage request, 
    string methodName, 
    AsyncCallback callback, 
    object state
);
protected: IAsyncResult^ BeginRequestSecurityToken(
    SecurityTokenMessage^ request, 
    String^ methodName, 
    AsyncCallback^ callback, 
    Object^ state
);
protected IAsyncResult BeginRequestSecurityToken(
    SecurityTokenMessage request, 
    System.String methodName, 
    AsyncCallback callback, 
    System.Object state
);
protected function BeginRequestSecurityToken(
     request : SecurityTokenMessage, 
     methodName : String, 
     callback : AsyncCallback, 
     state : Object
) : IAsyncResult;

Parameters

  • methodName
  • callback
    The System.AsyncCallback delegate.
  • state
    The state object for the request.

Return Value

An System.IAsyncResult that references the asynchronous request.

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 Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SecurityTokenServiceClient Class
Microsoft.Web.Services2.Security Namespace

Other Resources

SecurityTokenServiceClient Members