Condividi tramite


HumanInTheLoopExtentions.TryParseApprovalResponse(String, Boolean) Method

Definition

Tries to parse an input string to determine if it represents an approval or denial.

public static bool TryParseApprovalResponse(string? input, out bool isApproved);
static member TryParseApprovalResponse : string * bool -> bool
Public Function TryParseApprovalResponse (input As String, ByRef isApproved As Boolean) As Boolean

Parameters

input
String

The input string to parse.

isApproved
Boolean

True if the input represents approval; false if it represents denial.

Returns

True if parsing was successful; false otherwise.

Applies to