Share via


UserManager<TUser, TKey>.SendSmsAsync Method (TKey, String)

 

Sends the user a SMS message.

Namespace:   Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

public virtual Task SendSmsAsync(
    TKey userId,
    string message
)
public:
virtual Task^ SendSmsAsync(
    TKey userId,
    String^ message
)
abstract SendSmsAsync : 
        userId:'TKey *
        message:string -> Task
override SendSmsAsync : 
        userId:'TKey *
        message:string -> Task
Public Overridable Function SendSmsAsync (
    userId As TKey,
    message As String
) As Task

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

Type: System.Threading.Tasks.Task

The task representing the asynchronous operation.

See Also

UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top