System::Int16::Parse metodo

Int16::Parse(const String&) method

Converte la stringa specificata contenente la rappresentazione testuale di un numero nell’intero con segno a 16 bit equivalente.

static int16_t System::Int16::Parse(const String &value)
ParametroTipoDescrizione
valoreconst String&La stringa da convertire.

ReturnValue

L’intero con segno a 16 bit uguale al numero rappresentato dalla stringa specificata.

Vedi anche

Int16::Parse(const String&, const SharedPtr<Globalization::CultureInfo>&) method

static int16_t System::Int16::Parse(const String &value, const SharedPtr<Globalization::CultureInfo> &culture)

Vedi anche

Int16::Parse(const String&, const SharedPtr<Globalization::NumberFormatInfo>&) method

static int16_t System::Int16::Parse(const String &value, const SharedPtr<Globalization::NumberFormatInfo> &nfi)

Vedi anche

Int16::Parse(const String&, const SharedPtr<IFormatProvider>&) method

Converte la stringa specificata contenente la rappresentazione testuale di un numero nell’intero con segno a 16 bit equivalente utilizzando le informazioni di formattazione fornite.

static int16_t System::Int16::Parse(const String &value, const SharedPtr<IFormatProvider> &provider)
ParametroTipoDescrizione
valoreconst String&La stringa da convertire.
providerconst SharedPtr<IFormatProvider>&Un puntatore a un oggetto che contiene le informazioni sul formato della stringa.

ReturnValue

L’intero con segno a 16 bit uguale al numero rappresentato dalla stringa specificata.

Vedi anche

Int16::Parse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&) method

static int16_t System::Int16::Parse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::CultureInfo> &culture)

Vedi anche

Int16::Parse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&) method

static int16_t System::Int16::Parse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::NumberFormatInfo> &nfi)

Vedi anche

Int16::Parse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&) method

Converte la stringa specificata contenente la rappresentazione testuale di un numero nell’intero con segno a 16 bit equivalente utilizzando le informazioni di formattazione fornite e lo stile numerico.

static int16_t System::Int16::Parse(const String &value, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider)
ParametroTipoDescrizione
valoreconst String&La stringa da convertire.
stiliGlobalization::NumberStylesUna combinazione bitwise dei valori dell’enumerazione NumberStyles che specifica lo stile consentito della rappresentazione testuale di un numero.
providerconst SharedPtr<IFormatProvider>&Un puntatore a un oggetto che contiene le informazioni sul formato della stringa.

ReturnValue

L’intero con segno a 16 bit uguale al numero rappresentato dalla stringa specificata.

Vedi anche

Int16::Parse(const String&, Globalization::NumberStyles, std::nullptr_t) method

static int16_t System::Int16::Parse(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)

Vedi anche

Int16::Parse(const String&, std::nullptr_t) method

static int16_t System::Int16::Parse(const String &value, std::nullptr_t)

Vedi anche