Megosztás a következőn keresztül:


Connection.Open(Boolean) Method

Definition

Starts to set up connection to the service. You can optionally call Open() to manually set up a connection in advance before starting recognition on the Recognizer associated with this Connection. After starting recognition, calling Open() might fail, depending on the process state of the Recognizer. But the failure does not affect the state of the associated Recognizer. Note: On return, the connection might not be ready yet. Please subscribe to the Connected event to be notified when the connection is established.

public void Open (bool forContinuousRecognition);
member this.Open : bool -> unit
Public Sub Open (forContinuousRecognition As Boolean)

Parameters

forContinuousRecognition
Boolean

Indicates whether the connection is used for continuous recognition or single-shot recognition. It takes no effect if the connection is from SpeechSynthsizer.

Applies to