共用方式為


DbCommandInterceptionContext<TResult>.SetUserState 方法

定義

設定值,其中包含與作業相關聯的任意使用者指定狀態資訊。

public void SetUserState(string key, object value);
member this.SetUserState : string * obj -> unit
Public Sub SetUserState (key As String, value As Object)

參數

key
String

用來識別使用者狀態的金鑰。

value
Object

要設定的狀態。

適用於