StringHelperStrToId Method | Helper帮助文档 |
获取正确的Id,如果不是正整数,返回0
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static int StrToId( string _value )
Public Shared Function StrToId ( _value As String ) As Integer
public: static int StrToId( String^ _value )
static member StrToId : _value : string -> int
Parameters
- _value
- Type: SystemString
[Missing <param name="_value"/> documentation for "M:HD.Common.StringHelper.StrToId(System.String)"]
Return Value
Type: Int32返回正确的整数ID,失败返回0
See Also