MaskedTextProvider.GetOperationResultFromHint(MaskedTextResultHint) Method

Definition

Determines whether the specified MaskedTextResultHint denotes success or failure.

C#
public static bool GetOperationResultFromHint(System.ComponentModel.MaskedTextResultHint hint);

Parameters

hint
MaskedTextResultHint

A MaskedTextResultHint value typically obtained as an output parameter from a previous operation.

Returns

true if the specified MaskedTextResultHint value represents a success; otherwise, false if it represents failure.

Remarks

The following methods of the MaskedTextProvider class contain a parameter of type MaskedTextResultHint that is used to output information about the operation of the method: Add, Clear, InsertAt, Remove, RemoveAt, Replace, Set, VerifyChar, and VerifyString. The GetOperationResultFromHint method interprets this value and returns a Boolean value that indicates whether the MaskedTextResultHint has signaled that the operation was a success or failure.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also