BigInteger.TryFormat 方法

定义

重载

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

参数

utf8Destination
Span<Byte>
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

参数

destination
Span<Char>

将写入此实例的字符范围。

charsWritten
Int32

此方法返回时,包含范围长度(以字符数为单位)。

format
ReadOnlySpan<Char>

指定格式设置操作的格式的只读字符范围。

provider
IFormatProvider

提供区域性特定的格式设置信息的对象。

返回

true 如果格式设置操作成功,则为 false 否则。

实现

另请参阅

适用于