Validate whether a text is a valid text for current masking expression.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function Validate( _
ByVal text As System.String _
) As System.Boolean |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As MaskInfo
Dim text As System.String
Dim value As System.Boolean
value = instance.Validate(text) |
| C# | |
|---|
public System.bool Validate(
System.string text
) |
| Delphi | |
|---|
public function Validate(
text: System.String
): System.Boolean; |
| JScript | |
|---|
public function Validate(
text : System.String
) : System.boolean; |
| Managed Extensions for C++ | |
|---|
public: System.bool Validate(
System.string* text
) |
| C++/CLI | |
|---|
public:
System.bool Validate(
System.String^ text
) |
Parameters
- text
- A string to be validated.
Return Value
true if value is valid; otherwise, false.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also