Boolean.IParsable<Boolean>.Parse(String, IFormatProvider) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将字符串分析为值。
static bool System.IParsable<System.Boolean>.Parse(System::String ^ s, IFormatProvider ^ provider) = IParsable<bool>::Parse;
C#
static bool IParsable<bool>.Parse(string s, IFormatProvider provider);
static member System.IParsable<System.Boolean>.Parse : string * IFormatProvider -> bool
Shared Function Parse (s As String, provider As IFormatProvider) As Boolean Implements IParsable(Of Boolean).Parse
- s
- String
要分析的字符串。
- provider
- IFormatProvider
一个对象,提供有关 s
的区域性特定格式设置信息。
分析 s
的结果。
产品 | 版本 |
---|---|
.NET | 8, 9, 10 |