Language

OrchestratedErrorCodeExtensions.ToOrchestratedErrorCode(String) Method

Definition

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.

Applies to