Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Conversions.ToInteger Method

Definition

Namespace:
Microsoft.VisualBasic.CompilerServices
Assembly:
Microsoft.VisualBasic.dll
Assembly:
Microsoft.VisualBasic.Core.dll

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 an integer value.

Overloads

Name Description
ToInteger(Object)

Converts an object to an integer value.

ToInteger(String)

Converts a string to an integer value.

ToInteger(Object)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Converts an object to an integer value.

public:
 static int ToInteger(System::Object ^ Value);
public static int ToInteger(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

The object to convert.

Returns

The int value of the object.

Applies to

ToInteger(String)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Converts a string to an integer value.

public:
 static int ToInteger(System::String ^ Value);
public static int ToInteger(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

The string to convert.

Returns

The int value of the string.

Applies to


Feedback

Was this page helpful?