将指定的十六进制值转换为long值。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function HexStringToLong ( _
s As String _
) As Long
用法
Dim s As String
Dim returnValue As Long
returnValue = SPUtility.HexStringToLong(s)
public static long HexStringToLong(
string s
)
参数
s
类型:System.String要转换的十六进制值。
返回值
类型:System.Int64
转换后的值。
异常
| 异常 | 条件 |
|---|---|
| NullReferenceException | s是空引用(无 在 Visual Basic 中)。 |
| ArgumentException | s的长度大于 16。 |
备注
此方法将s参数的十六进制值转换为long格式。