CurrencyFormatter.ParseInt(String) 方法

定义

尝试分析整数货币值的字符串表示形式。

public:
 virtual IReference<long long> ^ ParseInt(Platform::String ^ text) = ParseInt;
IReference<long> ParseInt(winrt::hstring const& text);
public System.Nullable<long> ParseInt(string text);
function parseInt(text)
Public Function ParseInt (text As String) As Nullable(Of Long)

参数

text
String

Platform::String

winrt::hstring

要分析的文本。

返回

IReference<Int64>

Nullable<Int64>

Windows.Foundation.IReference

IReference<long>

如果成功,则为对应于字符串表示形式的 Int64 ,否则 为 null

实现

M:Windows.Globalization.NumberFormatting.INumberParser.ParseInt(System.String) M:Windows.Globalization.NumberFormatting.INumberParser.ParseInt(Platform::String) M:Windows.Globalization.NumberFormatting.INumberParser.ParseInt(winrt::hstring)

适用于