Conversions.ToInteger Conversions.ToInteger Conversions.ToInteger Conversions.ToInteger Method

Definition

Converts the specified object to an integer value.

Overloads

ToInteger(Object) ToInteger(Object) ToInteger(Object) ToInteger(Object)

Converts an object to an integer value.

ToInteger(String) ToInteger(String) ToInteger(String) ToInteger(String)

Converts a string to an integer value.

ToInteger(Object) ToInteger(Object) ToInteger(Object) ToInteger(Object)

Converts an object to an integer value.

public:
 static int ToInteger(System::Object ^ Value);
public static int ToInteger (object Value);
static member ToInteger : obj -> int
Public Shared Function ToInteger (Value As Object) As Integer

Parameters

Value
Object Object Object Object

The object to convert.

Returns

The int value of the object.

ToInteger(String) ToInteger(String) ToInteger(String) ToInteger(String)

Converts a string to an integer value.

public:
 static int ToInteger(System::String ^ Value);
public static int ToInteger (string Value);
static member ToInteger : string -> int
Public Shared Function ToInteger (Value As String) As Integer

Parameters

Value
String String String String

The string to convert.

Returns

The int value of the string.

Applies to