Conversions.ToInteger Método

Definição

Converte o objeto especificado num valor inteiro.

Sobrecargas

Name Description
ToInteger(Object)

Converte um objeto num valor inteiro.

ToInteger(String)

Converte uma cadeia num valor inteiro.

ToInteger(Object)

Converte um objeto num valor inteiro.

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

Parâmetros

Value
Object

O objetivo a converter.

Devoluções

O int valor do objeto.

Aplica-se a

ToInteger(String)

Converte uma cadeia num valor inteiro.

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

Parâmetros

Value
String

A cadeia a converter.

Devoluções

O int valor da corda.

Aplica-se a