IParsable<TSelf>.Parse(String, IFormatProvider) 方法

定义

将字符串分析为值。

public:
 static TSelf Parse(System::String ^ s, IFormatProvider ^ provider);
public static TSelf Parse (string s, IFormatProvider? provider);
static member Parse : string * IFormatProvider -> 'Self
Public Shared Function Parse (s As String, provider As IFormatProvider) As TSelf

参数

s
String

要分析的字符串。

provider
IFormatProvider

一个对象,提供有关 s 的区域性特定格式设置信息。

返回

TSelf

分析 s的结果。

例外

snull

s 的格式不正确。

s 不能由 TSelf.

适用于