共用方式為


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 表示。

適用於