SpeechRecognitionListConstraint 构造函数

定义

重载

SpeechRecognitionListConstraint(IIterable<String>)

从单词或短语数组创建 SpeechRecognitionListConstraint 类的实例。

SpeechRecognitionListConstraint(IIterable<String>, String)

从单词或短语数组和标记创建 SpeechRecognitionListConstraint 类的实例。

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))

参数

commands

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

构成约束的单词或短语的字符串数组。

另请参阅

适用于

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)

参数

commands

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

构成约束的单词或短语的字符串数组。

tag
String

Platform::String

winrt::hstring

要分配给约束的标记。

另请参阅

适用于