Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ISessionManager.SetAsync 方法

定义

重载

SetAsync(String, Boolean)

设置要用于会话的功能的状态。

SetAsync(String, Boolean, CancellationToken)

设置要用于会话的功能的状态。

SetAsync(String, Boolean)

设置要用于会话的功能的状态。

public System.Threading.Tasks.Task SetAsync (string featureName, bool enabled);
abstract member SetAsync : string * bool -> System.Threading.Tasks.Task
Public Function SetAsync (featureName As String, enabled As Boolean) As Task

参数

featureName
String

功能的名称。

enabled
Boolean

功能的状态。

返回

适用于

SetAsync(String, Boolean, CancellationToken)

设置要用于会话的功能的状态。

public System.Threading.Tasks.Task SetAsync (string featureName, bool enabled, System.Threading.CancellationToken cancellationToken = default);
abstract member SetAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetAsync (featureName As String, enabled As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

featureName
String

功能的名称。

enabled
Boolean

功能的状态。

cancellationToken
CancellationToken

用于取消操作的取消令牌。

返回

适用于