IActivityExtensions.GetLocale(IActivity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the locale for the activity.
public static string GetLocale (this Microsoft.Bot.Schema.IActivity activity);
static member GetLocale : Microsoft.Bot.Schema.IActivity -> string
<Extension()>
Public Function GetLocale (activity As IActivity) As String
Parameters
Returns
The locale for the activity.
Remarks
The locale name is a combination of an ISO 639 two- or three-letter culture code associated with a language and an ISO 3166 two-letter subculture code associated with a country or region. The locale name can also correspond to a valid BCP-47 language tag.