IActivityExtensions.SetLocale(IActivity, String) Method

Definition

Sets the locale for the activity.

public static void SetLocale (this Microsoft.Bot.Schema.IActivity activity, string locale);
static member SetLocale : Microsoft.Bot.Schema.IActivity * string -> unit
<Extension()>
Public Sub SetLocale (activity As IActivity, locale As String)

Parameters

activity
IActivity

The Activity instance.

locale
String

The locale for the activity specified as a combination of an ISO 639 two- or three-letter culture code associated with a language.

Applies to