Upraviť

Zdieľať cez


IPNetwork.TryFormat Method

Definition

Overloads

TryFormat(Span<Char>, Int32)

Attempts to write the IPNetwork's CIDR notation to the given destination span and returns a value indicating whether the operation succeeded.

TryFormat(Span<Byte>, Int32)

Attempts to write the IPNetwork's CIDR notation to the given utf8Destination UTF-8 span and returns a value indicating whether the operation succeeded.

TryFormat(Span<Char>, Int32)

Source:
IPNetwork.cs
Source:
IPNetwork.cs

Attempts to write the IPNetwork's CIDR notation to the given destination span and returns a value indicating whether the operation succeeded.

public:
 bool TryFormat(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryFormat (Span<char> destination, out int charsWritten);
member this.TryFormat : Span<char> * int -> bool
Public Function TryFormat (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean

Parameters

destination
Span<Char>

The destination span of characters.

charsWritten
Int32

When this method returns, contains the number of characters that were written to destination.

Returns

true if the formatting was successful; otherwise false.

Applies to

TryFormat(Span<Byte>, Int32)

Source:
IPNetwork.cs
Source:
IPNetwork.cs

Attempts to write the IPNetwork's CIDR notation to the given utf8Destination UTF-8 span and returns a value indicating whether the operation succeeded.

public:
 bool TryFormat(Span<System::Byte> utf8Destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryFormat (Span<byte> utf8Destination, out int bytesWritten);
member this.TryFormat : Span<byte> * int -> bool
Public Function TryFormat (utf8Destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parameters

utf8Destination
Span<Byte>

The destination span of UTF-8 bytes.

bytesWritten
Int32

When this method returns, contains the number of bytes that were written to utf8Destination.

Returns

true if the formatting was successful; otherwise false.

Applies to