Udostępnij za pośrednictwem


NavigableListActivity.RecognitionResult Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Gets the result from recognition.

Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
<GlobalizedDescriptionAttribute("DialogActivityCommon_RecognitionResult")> _
<GlobalizedCategoryAttribute("NonDesignableCategory")> _
<ReadOnlyAttribute(True)> _
<TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
Public Property RecognitionResult As RecognitionResult
[GlobalizedDescriptionAttribute("DialogActivityCommon_RecognitionResult")] 
[GlobalizedCategoryAttribute("NonDesignableCategory")] 
[ReadOnlyAttribute(true)] 
[TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.NonDesignableStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")] 
public RecognitionResult RecognitionResult { get; }

Property Value

A RecognitionResult instance, or null if a valid recognition does not occur.

Example

The following example returns with e.Result set to True if CurrentItem or RecognitionResult is a specified value. Otherwise, the example sets e.Result to False.

private void codeCondition1(object sender, ConditionalEventArgs e)
{
  if (this.browseCities.Items[(int)this.browseCities.CurrentItem].Equals(CORRECTANSWER) ||
      this.browseCities.RecognitionResult.Semantics.Value.Equals(CORRECTANSWER))
  {
    e.Result = true;
  }
  else
  {
    e.Result = false;
  }

}

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

Windows Server 2003

See Also

Reference

NavigableListActivity Class
NavigableListActivity Members
Microsoft.SpeechServer.Dialog Namespace