CallAutomationModelFactory.ChoiceResult(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of ChoiceResult.
public static Azure.Communication.CallAutomation.ChoiceResult ChoiceResult (string label = default, string recognizedPhrase = default);
static member ChoiceResult : string * string -> Azure.Communication.CallAutomation.ChoiceResult
Public Shared Function ChoiceResult (Optional label As String = Nothing, Optional recognizedPhrase As String = Nothing) As ChoiceResult
Parameters
- label
- String
Label is the primary identifier for the choice detected.
- recognizedPhrase
- String
Phrases are set to the value if choice is selected via phrase detection. If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set to null
Returns
A new ChoiceResult instance for mocking.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET