OrchestratedErrorCodeExtensions.ToOrchestratedErrorCode(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.
Parses a string error code into an OrchestratedErrorCode enum value. Returns Unknown if the code is null, empty, or not recognized.
public static Microsoft.Agents.CopilotStudio.Client.Models.OrchestratedErrorCode ToOrchestratedErrorCode(this string? code);
static member ToOrchestratedErrorCode : string -> Microsoft.Agents.CopilotStudio.Client.Models.OrchestratedErrorCode
<Extension()>
Public Function ToOrchestratedErrorCode (code As String) As OrchestratedErrorCode
Parameters
- code
- String
The error code string from the error payload.
Returns
The corresponding OrchestratedErrorCode value.