MaskedTextProvider.GetOperationResultFromHint(MaskedTextResultHint) 方法

定义

确定指定的 MaskedTextResultHint 是否表示成功还是失败。

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 值通常作为上一操作的输出参数获取。

返回

true 如果指定的 MaskedTextResultHint 值表示成功,则为 ;否则, false 如果表示失败。

注解

类的MaskedTextProvider以下方法包含一个类型MaskedTextResultHint参数,用于输出有关方法操作的信息:Add、、、ClearInsertAtRemoveRemoveAtReplaceSet、、 VerifyChar和。VerifyString 该方法 GetOperationResultFromHint 解释此值并返回一个布尔值,该值指示操作是 MaskedTextResultHint 成功还是失败。

适用于

另请参阅