SrgsSubset Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
SrgsSubset(System::String ^ text);
public SrgsSubset (string text);
new System.Speech.Recognition.SrgsGrammar.SrgsSubset : string -> System.Speech.Recognition.SrgsGrammar.SrgsSubset
Public Sub New (text As String)
Parameters
- text
- String
The portion of the phrase to be matched.
Exceptions
text
is null
.
Applies to
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.
public:
SrgsSubset(System::String ^ text, System::Speech::Recognition::SubsetMatchingMode matchingMode);
public SrgsSubset (string text, System.Speech.Recognition.SubsetMatchingMode matchingMode);
new System.Speech.Recognition.SrgsGrammar.SrgsSubset : string * System.Speech.Recognition.SubsetMatchingMode -> System.Speech.Recognition.SrgsGrammar.SrgsSubset
Public Sub New (text As String, matchingMode As SubsetMatchingMode)
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.