SPUtility.HexStringToLong method
將指定的十六進位值轉換成long值。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
Type: System.String要轉換的十六進位值。
傳回值
Type: System.Int64
轉換的值。
Exceptions
Exception | Condition |
---|---|
NullReferenceException | s是a null reference (Nothing in Visual Basic)。 |
ArgumentException | s長度大於 16。 |
備註
此方法會將十六進位s參數的值轉換成long格式。