Freigeben über


GenericTokenServiceClient.BeginIssueGenericToken Method

Begins an asynchronous request for a security token from a security token service.

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

Usage

'Usage
Dim tokenType As String
Dim appliesTo As AppliesTo
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
Dim genericTokenServiceClient1 As GenericTokenServiceClient
returnValue = genericTokenServiceClient1.BeginIssueGenericToken(tokenType, appliesTo, callback, state)

Syntax

'Declaration
Public Overridable Function BeginIssueGenericToken( _
    ByVal tokenType As String, _
    ByVal appliesTo As AppliesTo, _
    ByVal callback As AsyncCallback, _
    ByVal state As Object _
) As IAsyncResult
public virtual IAsyncResult BeginIssueGenericToken(
    string tokenType, 
    AppliesTo appliesTo, 
    AsyncCallback callback, 
    object state
);
public:
virtual IAsyncResult^ BeginIssueGenericToken(
    String^ tokenType,
    AppliesTo^ appliesTo,
    AsyncCallback^ callback,
    Object^ state
);
public virtual IAsyncResult BeginIssueGenericToken(
    System.String tokenType, 
    AppliesTo appliesTo, 
    AsyncCallback callback, 
    System.Object state
);
public function BeginIssueGenericToken(
     tokenType : String, 
     appliesTo : AppliesTo, 
     callback : AsyncCallback, 
     state : Object
) : IAsyncResult;

Parameters

  • tokenType
    The type of security token to request.
  • appliesTo
    An AppliesTo that represents the Web service that the security token is used to communicate with.
  • callback
    An AsyncCallback that is called when the asynchronous operation is completed. If callback is null, the delegate is not called.
  • state
    An object that contains state information for this request.

Return Value

An IAsyncResult that contains the details of 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 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

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