HeaderUtilities.TryParseNonNegativeInt64(StringSegment, Int64) Méthode

Définition

Essayez de convertir une StringSegment représentation d’un nombre positif en son équivalent entier signé 64 bits. Une valeur de retour indique si la conversion a réussi ou a échoué.

public:
 static bool TryParseNonNegativeInt64(Microsoft::Extensions::Primitives::StringSegment value, [Runtime::InteropServices::Out] long % result);
public static bool TryParseNonNegativeInt64 (Microsoft.Extensions.Primitives.StringSegment value, out long result);
static member TryParseNonNegativeInt64 : Microsoft.Extensions.Primitives.StringSegment * int64 -> bool
Public Shared Function TryParseNonNegativeInt64 (value As StringSegment, ByRef result As Long) As Boolean

Paramètres

value
StringSegment

StringSegment contenant un nombre à convertir.

result
Int64

Lorsque cette méthode est retournée, contient la valeur entière signée 64 bits équivalente au nombre contenu dans la chaîne, si la conversion a réussi, ou zéro si la conversion a échoué. La conversion échoue si est StringSegment null ou String.Empty, n’est pas au format correct, est négatif ou représente un nombre supérieur à Int64.MaxValue. Ce paramètre est passé sous forme non initialisée. Toute valeur fournie initialement dans le résultat sera remplacée.

Retours

true si l’analyse a réussi ; sinon, false.

S’applique à