- s
- The string to check.
| Visual Basic (Declaration) | |
|---|---|
<ExtensionAttribute()> Public Shared Function IsNumeric( _ ByVal s As String _ ) As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim s As String Dim value As Boolean value = GeneralExtensions.IsNumeric(s) | |
| C# | |
|---|---|
[ExtensionAttribute()] public static bool IsNumeric( string s ) | |
| C++/CLI | |
|---|---|
[ExtensionAttribute()] public: static bool IsNumeric( String^ s ) | |
Parameters
- s
- The string to check.
Return Value
true if the specified string is numeric; otherwise, false.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code