Share via


RecognizeCompletedEventArgs.CompletionType 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 type of completion in the case of normal termination of the operation.

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

Syntax

'Declaration
Public ReadOnly Property CompletionType As RecognizeCompletionType
public RecognizeCompletionType CompletionType { get; }

Property Value

A value in the RecognizeCompletionType enumeration.

Exceptions

Exception type Condition
InvalidOperationException

AsyncCompletedEventArgs.Canceled is True.

Various

See Remarks.

Remarks

When RecognizeCompletionType is Success, recognition results are available in the Result property. When RecognizeCompletionType is BabbleTimeoutExpired, recognition results may be available in the Result property. When RecognizeCompletionType is any other value, no results are available in the Result property.

In addition to the InvalidOperationException discussed in the Exceptions section, the CompletionType property can also throw other exceptions. CompletionType calls the RaiseExceptionIfNecessary method on the AsyncCompletedEventArgs class. If the Error property on this class contains an exception, RaiseExceptionIfNecessary throws that exception.

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

RecognizeCompletedEventArgs Class
RecognizeCompletedEventArgs Members
Microsoft.SpeechServer.Recognition Namespace