Share via


IPNetwork.TryFormat Méthode

Définition

Surcharges

TryFormat(Span<Char>, Int32)

Tente d’écrire la IPNetworknotation CIDR dans l’étendue donnée destination et retourne une valeur indiquant si l’opération a réussi.

TryFormat(Span<Byte>, Int32)

Tente d’écrire la IPNetworknotation CIDR dans l’étendue UTF-8 donnée utf8Destination et retourne une valeur indiquant si l’opération a réussi.

TryFormat(Span<Char>, Int32)

Source:
IPNetwork.cs
Source:
IPNetwork.cs

Tente d’écrire la IPNetworknotation CIDR dans l’étendue donnée destination et retourne une valeur indiquant si l’opération a réussi.

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

Paramètres

destination
Span<Char>

Étendue de caractères de destination.

charsWritten
Int32

Lorsque cette méthode retourne, contient le nombre de caractères qui ont été écrits dans destination.

Retours

true si la mise en forme a réussi ; sinon false.

S’applique à

TryFormat(Span<Byte>, Int32)

Source:
IPNetwork.cs
Source:
IPNetwork.cs

Tente d’écrire la IPNetworknotation CIDR dans l’étendue UTF-8 donnée utf8Destination et retourne une valeur indiquant si l’opération a réussi.

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

Paramètres

utf8Destination
Span<Byte>

Étendue de destination de UTF-8 octets.

bytesWritten
Int32

Lorsque cette méthode retourne, contient le nombre d’octets qui ont été écrits dans utf8Destination.

Retours

true si la mise en forme a réussi ; sinon false.

S’applique à