Share via


SpeechEventActivity.Subscribe Method

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.

Causes the SpeechEventActivity to subscribe for its event.

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

Syntax

'Declaration
Protected Overridable Sub Subscribe ( _
    parentContext As ActivityExecutionContext, _
    parentEventHandler As IActivityEventListener(Of QueueEventArgs) _
)
protected virtual void Subscribe (
    ActivityExecutionContext parentContext,
    IActivityEventListener<QueueEventArgs> parentEventHandler
)

Parameters

  • parentContext
    The System.Workflow.ComponentModel.ActivityExecutionContext that represents the execution environment of the activity.
  • parentEventHandler
    The event handler for the parent event.

Exceptions

Exception type Condition
ArgumentNullException

parentContext is null.

parentEventHandler is null.

Remarks

Because speech events do not exist on their own outside of a SpeechEventsActivity in Speech Server, this method is called only by a SpeechEventActivity.

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

SpeechEventActivity Class
SpeechEventActivity Members
Microsoft.SpeechServer.Dialog Namespace