BigInteger.TryFormat 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider) | |
| TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
将此大整数实例的格式设置为字符范围。 |
TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)
- Source:
- BigInteger.cs
public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = default);
abstract member TryFormat : Span<byte> * int * ReadOnlySpan<char> * IFormatProvider -> bool
override this.TryFormat : Span<byte> * int * ReadOnlySpan<char> * IFormatProvider -> bool
Public Function TryFormat (utf8Destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As ReadOnlySpan(Of Char) = Nothing, Optional provider As IFormatProvider = Nothing) As Boolean
参数
- bytesWritten
- Int32
- format
- ReadOnlySpan<Char>
- provider
- IFormatProvider
返回
实现
适用于
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)
- Source:
- BigInteger.cs
- Source:
- BigInteger.cs
- Source:
- BigInteger.cs
- Source:
- BigInteger.cs
- Source:
- BigInteger.cs
将此大整数实例的格式设置为字符范围。
public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = default);
public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider provider = default);
abstract member TryFormat : Span<char> * int * ReadOnlySpan<char> * IFormatProvider -> bool
override this.TryFormat : Span<char> * int * ReadOnlySpan<char> * IFormatProvider -> bool
member this.TryFormat : Span<char> * int * ReadOnlySpan<char> * IFormatProvider -> bool
Public Function TryFormat (destination As Span(Of Char), ByRef charsWritten As Integer, Optional format As ReadOnlySpan(Of Char) = Nothing, Optional provider As IFormatProvider = Nothing) As Boolean
参数
- charsWritten
- Int32
此方法返回时,包含范围长度(以字符数为单位)。
- format
- ReadOnlySpan<Char>
指定格式设置操作的格式的只读字符范围。
- provider
- IFormatProvider
提供区域性特定的格式设置信息的对象。
返回
true 如果格式设置操作成功,则为 false 否则。