共用方式為


ConversationalAgentDetectorManager.GetActivationSignalDetectorFromId 方法

定義

擷取與這個管理員相關聯且指定ActivationSignalDetector.DetectorId之系統上可用的ActivationSignalDetector 物件。

重要

若要避免可能的並行問題,建議您改用 GetActivationSignalDetectorFromIdAsync (System.String)

public:
 virtual ActivationSignalDetector ^ GetActivationSignalDetectorFromId(Platform::String ^ detectorId) = GetActivationSignalDetectorFromId;
ActivationSignalDetector GetActivationSignalDetectorFromId(winrt::hstring const& detectorId);
public ActivationSignalDetector GetActivationSignalDetectorFromId(string detectorId);
function getActivationSignalDetectorFromId(detectorId)
Public Function GetActivationSignalDetectorFromId (detectorId As String) As ActivationSignalDetector

參數

detectorId
String

Platform::String

winrt::hstring

ActivationSignalDetector 的唯一標識碼。

傳回

根據使用者環境的輸入產生啟用訊號的硬體或軟體元件,例如語音關鍵詞 () 、音效偵測或按鈕按下。

Windows 需求

裝置系列
Windows 11 (已於 10.0.22000.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v14.0 引進)

適用於

另請參閱