Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Converts the specified hexadecimal value to a long value.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function HexStringToLong ( _
s As String _
) As Long
'Usage
Dim s As String
Dim returnValue As Long
returnValue = SPUtility.HexStringToLong(s)
public static long HexStringToLong(
string s
)
Parameters
s
Type: System.StringThe hexadecimal value to convert.
Return Value
Type: System.Int64
The converted value.
Exceptions
| Exception | Condition |
|---|---|
| NullReferenceException | s is a null reference (Nothing in Visual Basic). |
| ArgumentException | The length of s is greater than 16. |
Remarks
This method converts the hexadecimal value of the s parameter to long format.