IPAddress.TryWriteBytes(Span<Byte>, Int32) Méthode

Définition

Tente d’écrire l’adresse IP actuelle dans une étendue d’octets dans l’ordre réseau.

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

Paramètres

destination
Span<Byte>

Quand cette méthode est retournée, adresse IP sous forme de plage d’octets.

bytesWritten
Int32

Quand cette méthode est retournée, nombre d’octets écrits dans la plage.

Retours

true si l’adresse IP est correctement écrite dans la plage donnée ; sinon, false.

S’applique à