ILocaleFinder.FindLocale(IActivity, CancellationToken) 方法

定义

给定活动后,它会查找区域设置。

public System.Threading.Tasks.Task<string> FindLocale (Microsoft.Bot.Connector.IActivity activity, System.Threading.CancellationToken token);
abstract member FindLocale : Microsoft.Bot.Connector.IActivity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function FindLocale (activity As IActivity, token As CancellationToken) As Task(Of String)

参数

activity
IActivity

活动。

token
CancellationToken

取消标记。

返回

适用于