StringHelper.IsNumberId Method

HD.Common

StringHelperIsNumberId Method Helper帮助文档
检查一个字符串是否是纯数字构成的,一般用于查询字符串参数的有效性验证。(0除外)

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static bool IsNumberId(
	string _value
)
Public Shared Function IsNumberId ( 
	_value As String
) As Boolean
public:
static bool IsNumberId(
	String^ _value
)
static member IsNumberId : 
        _value : string -> bool 

Parameters

_value
Type: SystemString
需验证的字符串。。

Return Value

Type: Boolean
是否合法的bool值。
See Also

Reference