System::Int16::Parse-metod

Int16::Parse(const String&) method

Konverterar den angivna strängen som innehåller talets strängrepresentation till motsvarande 16-bitars signerade heltal.

static int16_t System::Int16::Parse(const String &value)
ParameterTypBeskrivning
värdeconst String&Strängen att konvertera.

ReturnValue

Det 16-bitars signerade heltalet som är lika med talet som representeras av den angivna strängen.

Se även

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

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

Se även

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

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

Se även

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

Konverterar den angivna strängen som innehåller talets strängrepresentation till motsvarande 16-bitars signerade heltal med hjälp av den angivna formateringsinformationen.

static int16_t System::Int16::Parse(const String &value, const SharedPtr<IFormatProvider> &provider)
ParameterTypBeskrivning
värdeconst String&Strängen att konvertera.
leverantörconst SharedPtr<IFormatProvider>&En pekare till ett objekt som innehåller information om strängformat.

ReturnValue

Det 16-bitars signerade heltalet som är lika med talet som representeras av den angivna strängen.

Se även

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)

Se även

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)

Se även

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

Konverterar den angivna strängen som innehåller talets strängrepresentation till motsvarande 16-bitars signerade heltal med hjälp av den angivna formateringsinformationen och talstilen.

static int16_t System::Int16::Parse(const String &value, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider)
ParameterTypBeskrivning
värdeconst String&Strängen att konvertera.
stilarGlobalization::NumberStylesEn bitvis kombination av värden i NumberStyles‑enumerationen som specificerar den tillåtna stilen för ett tal i strängrepresentation.
leverantörconst SharedPtr<IFormatProvider>&En pekare till ett objekt som innehåller information om strängformat.

ReturnValue

Det 16-bitars signerade heltalet som är lika med talet som representeras av den angivna strängen.

Se även

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)

Se även

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

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

Se även