Conversions.ToString Metodo

Definizione

Converte l'oggetto specificato in un valore String.

Overload

ToString(Int64)

Converte un valore Long in valore String.

ToString(Single, NumberFormatInfo)

Converte un valore Single in un valore String, utilizzando il formato numerico specificato.

ToString(Double, NumberFormatInfo)

Converte un valore Double in un valore String, utilizzando il formato numerico specificato.

ToString(Decimal, NumberFormatInfo)

Converte un valore Decimal in un valore String, utilizzando il formato numerico specificato.

ToString(UInt64)

Converte un valore Ulong in valore String.

ToString(UInt32)

Converte un valore uint in valore String.

ToString(Single)

Converte un valore Single (numero a virgola mobile e precisione singola) in un valore String.

ToString(Object)

Converte un oggetto in un valore String.

ToString(Int32)

Converte un intero in un valore String.

ToString(Int16)

Converte un valore Short in valore String.

ToString(Double)

Converte un valore Double in valore String.

ToString(Decimal)

Converte un valore Decimal in valore String.

ToString(DateTime)

Converte un valore DateTime in valore String.

ToString(Char)

Converte un valore Char in valore String.

ToString(Byte)

Converte un valore Byte in valore String.

ToString(Boolean)

Converte un valore Boolean in valore String.

ToString(Int64)

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

Converte un valore Long in valore String.

public:
 static System::String ^ ToString(long Value);
public static string ToString (long Value);
static member ToString : int64 -> string
Public Shared Function ToString (Value As Long) As String

Parametri

Value
Int64

Valore Long da convertire.

Restituisce

Rappresentazione String del valore Long.

Si applica a

ToString(Single, NumberFormatInfo)

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

Converte un valore Single in un valore String, utilizzando il formato numerico specificato.

public:
 static System::String ^ ToString(float Value, System::Globalization::NumberFormatInfo ^ NumberFormat);
public static string ToString (float Value, System.Globalization.NumberFormatInfo? NumberFormat);
public static string ToString (float Value, System.Globalization.NumberFormatInfo NumberFormat);
static member ToString : single * System.Globalization.NumberFormatInfo -> string
Public Shared Function ToString (Value As Single, NumberFormat As NumberFormatInfo) As String

Parametri

Value
Single

Valore Single da convertire.

NumberFormat
NumberFormatInfo

Formato numerico da utilizzare, in base a NumberFormatInfo.

Restituisce

Rappresentazione in forma di stringa del valore Single.

Si applica a

ToString(Double, NumberFormatInfo)

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

Converte un valore Double in un valore String, utilizzando il formato numerico specificato.

public:
 static System::String ^ ToString(double Value, System::Globalization::NumberFormatInfo ^ NumberFormat);
public static string ToString (double Value, System.Globalization.NumberFormatInfo? NumberFormat);
public static string ToString (double Value, System.Globalization.NumberFormatInfo NumberFormat);
static member ToString : double * System.Globalization.NumberFormatInfo -> string
Public Shared Function ToString (Value As Double, NumberFormat As NumberFormatInfo) As String

Parametri

Value
Double

Valore Double da convertire.

NumberFormat
NumberFormatInfo

Formato numerico da utilizzare, in base a NumberFormatInfo.

Restituisce

Rappresentazione in forma di stringa del valore Double.

Si applica a

ToString(Decimal, NumberFormatInfo)

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

Converte un valore Decimal in un valore String, utilizzando il formato numerico specificato.

public:
 static System::String ^ ToString(System::Decimal Value, System::Globalization::NumberFormatInfo ^ NumberFormat);
public static string ToString (decimal Value, System.Globalization.NumberFormatInfo? NumberFormat);
public static string ToString (decimal Value, System.Globalization.NumberFormatInfo NumberFormat);
static member ToString : decimal * System.Globalization.NumberFormatInfo -> string
Public Shared Function ToString (Value As Decimal, NumberFormat As NumberFormatInfo) As String

Parametri

Value
Decimal

Valore decimal da convertire.

NumberFormat
NumberFormatInfo

Formato numerico da utilizzare, in base a NumberFormatInfo.

Restituisce

Rappresentazione String del valore Decimal.

Si applica a

ToString(UInt64)

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

Importante

Questa API non è conforme a CLS.

Alternativa conforme a CLS
Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Int64)

Converte un valore Ulong in valore String.

public:
 static System::String ^ ToString(System::UInt64 Value);
[System.CLSCompliant(false)]
public static string ToString (ulong Value);
[<System.CLSCompliant(false)>]
static member ToString : uint64 -> string
Public Shared Function ToString (Value As ULong) As String

Parametri

Value
UInt64

Valore Ulong da convertire.

Restituisce

Rappresentazione String del valore Ulong.

Attributi

Si applica a

ToString(UInt32)

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

Importante

Questa API non è conforme a CLS.

Alternativa conforme a CLS
Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Int32)

Converte un valore uint in valore String.

public:
 static System::String ^ ToString(System::UInt32 Value);
[System.CLSCompliant(false)]
public static string ToString (uint Value);
[<System.CLSCompliant(false)>]
static member ToString : uint32 -> string
Public Shared Function ToString (Value As UInteger) As String

Parametri

Value
UInt32

Valore Uint da convertire.

Restituisce

Rappresentazione String del valore Uint.

Attributi

Si applica a

ToString(Single)

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

Converte un valore Single (numero a virgola mobile e precisione singola) in un valore String.

public:
 static System::String ^ ToString(float Value);
public static string ToString (float Value);
static member ToString : single -> string
Public Shared Function ToString (Value As Single) As String

Parametri

Value
Single

Valore Single da convertire.

Restituisce

Rappresentazione in forma di stringa del valore Single.

Si applica a

ToString(Object)

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

Converte un oggetto in un valore String.

public:
 static System::String ^ ToString(System::Object ^ Value);
public static string ToString (object Value);
public static string? ToString (object? Value);
static member ToString : obj -> string
Public Shared Function ToString (Value As Object) As String

Parametri

Value
Object

Oggetto da convertire.

Restituisce

Rappresentazione String dell'oggetto.

Si applica a

ToString(Int32)

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

Converte un intero in un valore String.

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

Parametri

Value
Int32

Valore int da convertire.

Restituisce

Rappresentazione String del valore int.

Si applica a

ToString(Int16)

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

Converte un valore Short in valore String.

public:
 static System::String ^ ToString(short Value);
public static string ToString (short Value);
static member ToString : int16 -> string
Public Shared Function ToString (Value As Short) As String

Parametri

Value
Int16

Valore Short da convertire.

Restituisce

Rappresentazione String del valore Short.

Si applica a

ToString(Double)

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

Converte un valore Double in valore String.

public:
 static System::String ^ ToString(double Value);
public static string ToString (double Value);
static member ToString : double -> string
Public Shared Function ToString (Value As Double) As String

Parametri

Value
Double

Valore Double da convertire.

Restituisce

Rappresentazione in forma di stringa del valore Double.

Si applica a

ToString(Decimal)

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

Converte un valore Decimal in valore String.

public:
 static System::String ^ ToString(System::Decimal Value);
public static string ToString (decimal Value);
static member ToString : decimal -> string
Public Shared Function ToString (Value As Decimal) As String

Parametri

Value
Decimal

Valore Decimal da convertire.

Restituisce

Rappresentazione String del valore Decimal.

Si applica a

ToString(DateTime)

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

Converte un valore DateTime in valore String.

public:
 static System::String ^ ToString(DateTime Value);
public static string ToString (DateTime Value);
static member ToString : DateTime -> string
Public Shared Function ToString (Value As DateTime) As String

Parametri

Value
DateTime

Valore DateTime da convertire.

Restituisce

Rappresentazione String del valore DateTime.

Si applica a

ToString(Char)

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

Converte un valore Char in valore String.

public:
 static System::String ^ ToString(char Value);
public static string ToString (char Value);
static member ToString : char -> string
Public Shared Function ToString (Value As Char) As String

Parametri

Value
Char

Valore Char da convertire.

Restituisce

Rappresentazione String del valore Char.

Si applica a

ToString(Byte)

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

Converte un valore Byte in valore String.

public:
 static System::String ^ ToString(System::Byte Value);
public static string ToString (byte Value);
static member ToString : byte -> string
Public Shared Function ToString (Value As Byte) As String

Parametri

Value
Byte

Valore Byte da convertire.

Restituisce

Rappresentazione String del valore Byte.

Si applica a

ToString(Boolean)

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

Converte un valore Boolean in valore String.

public:
 static System::String ^ ToString(bool Value);
public static string ToString (bool Value);
static member ToString : bool -> string
Public Shared Function ToString (Value As Boolean) As String

Parametri

Value
Boolean

Valore Boolean da convertire.

Restituisce

Rappresentazione String del valore Boolean.

Si applica a