System::Int64::TryParse-methode

Int64::TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&, int64_t&) method

static bool System::Int64::TryParse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::CultureInfo> &culture, int64_t &result)

Zie ook

Int64::TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&, int64_t&) method

static bool System::Int64::TryParse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::NumberFormatInfo> &nfi, int64_t &result)

Zie ook

Int64::TryParse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&, int64_t&) method

Converteert de opgegeven string die de tekenreeksrepresentatie van een getal bevat naar het equivalente 64-bit ondertekende geheel getal met behulp van de opgegeven opmaakinformatie en getalstijl.

static bool System::Int64::TryParse(const String &value, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider, int64_t &result)
ParameterTypeBeschrijving
valueconst String&De te converteren string.
stijlenGlobalization::NumberStylesEen bitwise-combinatie van waarden van de NumberStyles-enumeratie die de toegestane stijl van de tekenreeksrepresentatie van een getal specificeert.
providerconst SharedPtr<IFormatProvider>&Een pointer naar een object dat de tekenreeksopmaakinformatie bevat.
resultint64_t&De referentie naar een 64‑bits ondertekende gehele getalvariabele waarin het resultaat van de conversie wordt geplaatst.

ReturnValue

True als de conversie geslaagd is, anders - false.

Zie ook

Int64::TryParse(const String&, Globalization::NumberStyles, std::nullptr_t, int64_t&) method

static bool System::Int64::TryParse(const String &value, Globalization::NumberStyles styles, std::nullptr_t, int64_t &result)

Zie ook

Int64::TryParse(const String&, int64_t&) method

Converteert de opgegeven string die de stringrepresentatie van een getal bevat naar de equivalente 64-bit signed integer.

static bool System::Int64::TryParse(const String &value, int64_t &result)
ParameterTypeBeschrijving
valueconst String&De te converteren string.
resultint64_t&De referentie naar een 64‑bits ondertekende gehele getalvariabele waarin het resultaat van de conversie wordt geplaatst.

ReturnValue

True als de conversie geslaagd is, anders - false.

Zie ook