ConversationalAgentSession.IsInterrupted 屬性

定義

取得 ConversationalAgentSession 是否中斷。

public:
 property bool IsInterrupted { bool get(); };
bool IsInterrupted();
public bool IsInterrupted { get; }
var boolean = conversationalAgentSession.isInterrupted;
Public ReadOnly Property IsInterrupted As Boolean

屬性值

Boolean

bool

True 是表示 如果 ConversationalAgentSession 中斷;否則為 false。

備註

某些數位 助理 會話無法由另一個訊號中斷。 例如,Cortana 要求使用者發出取消或停止命令,以結束目前的會話, (使用者不能在 Cortana 會話中,並將命令發出給) 。

如果會話可以中斷,Windows 對話代理程式平臺會引發 SessionInterrupted 事件,指出數位 助理 應用程式應該將本身設定為非使用中,並停止處理輸入。

適用於

另請參閱