แก้ไข

แชร์ผ่าน


Conversions.ToLong Method

Definition

Converts the specified object to a Long value.

Overloads

ToLong(Object)

Converts an object to a Long value.

ToLong(String)

Converts a string to a Long value.

ToLong(Object)

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 -> int64
Public Shared Function ToLong (Value As Object) As Long

Parameters

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

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 -> int64
Public Shared Function ToLong (Value As String) As Long

Parameters

Value
String

The string to convert.

Returns

The Long value of the string.

Applies to