Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
![]() |
Gets or sets the activation order of the control, relative to other Speech Controls on the page. Read/write.
Usage
| ASP.NET markup: | <speech:SpeechControl SpeechIndex="..." /> |
| Get value: | Int = SpeechControl.SpeechIndex; |
| Set value: | SpeechControl.SpeechIndex = Int; |
| Data type: | Int |
| Required: | No |
SpeechIndex can be used by dialog authors to modify the order in which the client-side dialog manager RunSpeech activates the control. See the Activation and Semantic Processing topic for more details.
The value of SpeechIndex must be a positive integer. The control throws ArgumentOutOfRangeException for negative values of SpeechIndex.
Example
<form id="Form1" method="post" runat="server">
...
<Speech:QA id="CoffeeType" SpeechIndex="1" runat="server">
<Prompt InlinePrompt="What type of coffee would you like?"></Prompt>
<Answers>
<Speech:Answer SemanticItem="siCoffeeType" ID="CoffeeType_QACoffeeType" XPathTrigger="./CoffeeType"></Speech:Answer>
</Answers>
<Reco InitialTimeout="3000" BabbleTimeout="10000" EndSilence="1000" MaxTimeout="30000">
<Grammars>
<Speech:Grammar Src="Grammars/library.grxml#G1"></Speech:Grammar>
</Grammars>
</Reco>
<ExtraAnswers>
<Speech:Answer SemanticItem="siSize" ID="Size_QACoffeeType" XPathTrigger="./Size"></Speech:Answer>
<Speech:Answer SemanticItem="siMilk" ID="Milk_QACoffeeType" XPathTrigger="./Milk"></Speech:Answer>
</ExtraAnswers>
</Speech:QA>
<Speech:QA id="Size" SpeechIndex="2" runat="server">
<Prompt InlinePrompt="What size would you like?"></Prompt>
<Answers>
<Speech:Answer SemanticItem="siSize" ID="Size_QASize" XPathTrigger="./Size"></Speech:Answer>
</Answers>
<Reco InitialTimeout="3000" BabbleTimeout="10000" EndSilence="1000" MaxTimeout="30000" ID="Reco1">
<Grammars>
<Speech:Grammar Src="Grammars/library.grxml#G2"></Speech:Grammar>
</Grammars>
</Reco>
<ExtraAnswers>
<Speech:Answer SemanticItem="siMilk" ID="Milk_QASize" XPathTrigger="./Milk"></Speech:Answer>
</ExtraAnswers>
</Speech:QA>
<Speech:QA id="Milk" SpeechIndex="3" runat="server">
<Prompt InlinePrompt="Whole milk or Non fat?"></Prompt>
<Answers>
<Speech:Answer SemanticItem="siMilk" ID="Milk_QA3" XPathTrigger="./Milk"></Speech:Answer>
</Answers>
<Reco InitialTimeout="3000" BabbleTimeout="10000" EndSilence="1000" MaxTimeout="30000" ID="Reco2">
<Grammars>
<Speech:Grammar Src="Grammars/library.grxml#G3"></Speech:Grammar>
</Grammars>
</Reco>
</Speech:QA>
...
</form>
See Also
IndexedSpeechControl Class | IndexedSpeechControl Constructor | IndexedSpeechControl Members | IndexedSpeechControl Properties | IndexedSpeechControl Methods | IndexedSpeechControl Events
.jpg)