IPAddress.TryWriteBytes(Span<Byte>, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
Lorsque cette méthode est retournée, l’adresse IP sous la forme d’une plage d’octets.
- bytesWritten
- Int32
Lorsque cette méthode est retournée, nombre d’octets écrits dans l’étendue.
Retours
true si l’adresse IP est correctement écrite dans l’étendue donnée ; sinon, false.