System::Int32::Parse 方法

Int32::Parse(const ReadOnlySpan<char16_t>&) method

static int32_t System::Int32::Parse(const ReadOnlySpan<char16_t> &span)

另见

Int32::Parse(const ReadOnlySpan<char16_t>&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&) method

static int32_t System::Int32::Parse(const ReadOnlySpan<char16_t> &span, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider)

另见

Int32::Parse(const ReadOnlySpan<char16_t>&, std::nullptr_t) method

static int32_t System::Int32::Parse(const ReadOnlySpan<char16_t> &span, std::nullptr_t)

另见

Int32::Parse(const String&) method

将包含数字字符串表示的指定字符串转换为等效的 32 位有符号整数。

static int32_t System::Int32::Parse(const String &value)
参数类型描述
const String&待转换的字符串。

ReturnValue

等于指定字符串表示的数字的 32 位有符号整数。

另见

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

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

另见

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

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

另见

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

将包含数字字符串表示的指定字符串转换为等效的 32 位有符号整数,使用提供的格式信息。

static int32_t System::Int32::Parse(const String &value, const SharedPtr<IFormatProvider> &provider)
参数类型描述
const String&待转换的字符串。
提供程序const SharedPtr<IFormatProvider>&指向包含字符串格式信息的对象的指针。

ReturnValue

等于指定字符串表示的数字的 32 位有符号整数。

另见

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

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

另见

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

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

另见

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

将包含数字字符串表示的指定字符串转换为等效的 32 位有符号整数,使用提供的格式信息和数字样式。

static int32_t System::Int32::Parse(const String &value, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider)
参数类型描述
const String&待转换的字符串。
stylesGlobalization::NumberStylesNumberStyles 枚举值的按位组合,指定数字字符串表示的允许样式。
提供程序const SharedPtr<IFormatProvider>&指向包含字符串格式信息的对象的指针。

ReturnValue

等于指定字符串表示的数字的 32 位有符号整数。

另见

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

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

另见

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

static int32_t System::Int32::Parse(const String &value, std::nullptr_t)

另见