SpeechRecognitionListConstraint 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SpeechRecognitionListConstraint(IIterable<String>)
从单词或短语数组创建 SpeechRecognitionListConstraint 类的实例。
public:
SpeechRecognitionListConstraint(IIterable<Platform::String ^> ^ commands);
SpeechRecognitionListConstraint(IIterable<winrt::hstring> const& commands);
public SpeechRecognitionListConstraint(IEnumerable<string> commands);
function SpeechRecognitionListConstraint(commands)
Public Sub New (commands As IEnumerable(Of String))
参数
另请参阅
适用于
SpeechRecognitionListConstraint(IIterable<String>, String)
从单词或短语数组和标记创建 SpeechRecognitionListConstraint 类的实例。
public:
SpeechRecognitionListConstraint(IIterable<Platform::String ^> ^ commands, Platform::String ^ tag);
SpeechRecognitionListConstraint(IIterable<winrt::hstring> const& commands, winrt::hstring const& tag);
public SpeechRecognitionListConstraint(IEnumerable<string> commands, string tag);
function SpeechRecognitionListConstraint(commands, tag)
Public Sub New (commands As IEnumerable(Of String), tag As String)
参数
- tag
-
String
Platform::String
winrt::hstring
要分配给约束的标记。