Conversions.ToLong Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the specified object to a Long value.
Overloads
| ToLong(Object) | Converts an object to a  | 
| ToLong(String) | Converts a string to a  | 
ToLong(Object)
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
Converts an object to a Long value.
public:
 static long ToLong(System::Object ^ Value);public static long ToLong(object Value);public static long ToLong(object? Value);static member ToLong : obj -> int64Public Shared Function ToLong (Value As Object) As LongParameters
- Value
- Object
The object to convert.
Returns
The Long value of the object.
Applies to
ToLong(String)
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
Converts a string to a Long value.
public:
 static long ToLong(System::String ^ Value);public static long ToLong(string Value);public static long ToLong(string? Value);static member ToLong : string -> int64Public Shared Function ToLong (Value As String) As LongParameters
- Value
- String
The string to convert.
Returns
The Long value of the string.