İngilizce dilinde oku Düzenle

Aracılığıyla paylaş


SrgsSubset Constructors

Definition

Initializes a new instance of the SrgsSubset class.

Overloads

SrgsSubset(String)

Initializes a new instance of the SrgsSubset class, specifying the portion of the phrase to be matched.

SrgsSubset(String, SubsetMatchingMode)

Initializes a new instance of the SrgsSubset class, specifying the portion to be matched and the mode in which the text should be matched.

SrgsSubset(String)

Source:
SrgsSubset.cs
Source:
SrgsSubset.cs
Source:
SrgsSubset.cs

Initializes a new instance of the SrgsSubset class, specifying the portion of the phrase to be matched.

C#
public SrgsSubset(string text);

Parameters

text
String

The portion of the phrase to be matched.

Exceptions

text is null.

Applies to

.NET 10 (package-provided) ve diğer sürümler
Ürün Sürümler
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

SrgsSubset(String, SubsetMatchingMode)

Source:
SrgsSubset.cs
Source:
SrgsSubset.cs
Source:
SrgsSubset.cs

Initializes a new instance of the SrgsSubset class, specifying the portion to be matched and the mode in which the text should be matched.

C#
public SrgsSubset(string text, System.Speech.Recognition.SubsetMatchingMode matchingMode);

Parameters

text
String

The portion of the phrase to be matched.

matchingMode
SubsetMatchingMode

The mode in which text should be matched with the spoken phrase.

Exceptions

text is null.

text is empty.

text contains only white space characters (that is, ' ', '\t', '\n', '\r').

matchingMode is set to a value in the SubsetMatchingMode enumeration.

Remarks

The matchingMode parameter must a member of the SubsetMatchingMode enumeration.

Applies to

.NET 10 (package-provided) ve diğer sürümler
Ürün Sürümler
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)