IPAddress.TryFormat Metodo

Definizione

Overload

TryFormat(Span<Char>, Int32)

Tenta di formattare l'indirizzo IP corrente nell'intervallo specificato.

TryFormat(Span<Byte>, Int32)

Tenta di formattare l'indirizzo IP corrente nell'intervallo specificato.

TryFormat(Span<Char>, Int32)

Source:
IPAddress.cs
Source:
IPAddress.cs
Source:
IPAddress.cs

Tenta di formattare l'indirizzo IP corrente nell'intervallo specificato.

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

Parametri

destination
Span<Char>

Al termine di questo metodo, l'indirizzo IP come intervallo di caratteri.

charsWritten
Int32

Al termine di questo metodo, il numero di caratteri scritti nell'intervallo.

Restituisce

true se la formattazione è stata eseguita correttamente. In caso contrario, false.

Si applica a

TryFormat(Span<Byte>, Int32)

Source:
IPAddress.cs
Source:
IPAddress.cs

Tenta di formattare l'indirizzo IP corrente nell'intervallo specificato.

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

Parametri

utf8Destination
Span<Byte>

Intervallo in cui scrivere l'indirizzo IP come intervallo di byte UTF-8.

bytesWritten
Int32

Quando termina, questo metodo contiene il numero di byte scritti in utf8Destination.

Restituisce

true se la formattazione è stata eseguita correttamente. In caso contrario, false.

Si applica a