ConversationalAgentSession.GetCurrentSessionSync 方法

定義

同步擷取目前 ConversationalAgentSession 的參考。

重要

若要避免可能的並行問題,建議您改用 GetCurrentSessionAsync

public:
 static ConversationalAgentSession ^ GetCurrentSessionSync();
 static ConversationalAgentSession GetCurrentSessionSync();
public static ConversationalAgentSession GetCurrentSessionSync();
function getCurrentSessionSync()
Public Shared Function GetCurrentSessionSync () As ConversationalAgentSession

傳回

目前 ConversationalAgentSession 的參考。

適用於

另請參閱