MaskedTextProvider.GetOperationResultFromHint(MaskedTextResultHint) 方法

定义

确定指定的 MaskedTextResultHint 表示成功还是失败。Determines whether the specified MaskedTextResultHint denotes success or failure.

public:
 static bool GetOperationResultFromHint(System::ComponentModel::MaskedTextResultHint hint);
public static bool GetOperationResultFromHint (System.ComponentModel.MaskedTextResultHint hint);
static member GetOperationResultFromHint : System.ComponentModel.MaskedTextResultHint -> bool
Public Shared Function GetOperationResultFromHint (hint As MaskedTextResultHint) As Boolean

参数

hint
MaskedTextResultHint

一个 MaskedTextResultHint 值,通常作为上一个操作的输出参数获取。A MaskedTextResultHint value typically obtained as an output parameter from a previous operation.

返回

如果指定的 MaskedTextResultHint 值表示成功,则为 true;如果表示失败,则为 falsetrue if the specified MaskedTextResultHint value represents a success; otherwise, false if it represents failure.

注解

MaskedTextProvider类的以下方法包含类型MaskedTextResultHint的参数,该参数用于输出有关方法操作的信息RemoveAtAddClearInsertAtRemove、、 ReplaceSetVerifyChar和。VerifyStringThe 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. 方法解释此值,并返回一个布尔值,该值指示该MaskedTextResultHint操作是成功还是失败。 GetOperationResultFromHintThe 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.

适用于

另请参阅