JsonElement.TryGetInt64(Int64) Método

Definição

Tenta representar o número JSON atual como um Int64.Attempts to represent the current JSON number as a Int64.

public:
 bool TryGetInt64([Runtime::InteropServices::Out] long % value);
public bool TryGetInt64 (out long value);
member this.TryGetInt64 : int64 -> bool
Public Function TryGetInt64 (ByRef value As Long) As Boolean

Parâmetros

value
Int64

Quando esse método é retornado, ele contém o valor do inteiro de 64 bits equivalente ao número JSON atual.When this method returns, contains the 64-bit integer value equivalent to the current JSON number.

Retornos

Boolean

true se o número puder ser representado como um Int64; caso contrário, false.true if the number can be represented as a Int64; otherwise, false.

Exceções

O ValueKind desse valor não é Number.This value's ValueKind is not Number.

O JsonDocument pai foi descartado.The parent JsonDocument has been disposed.

Comentários

Esse método não analisa o conteúdo de um valor de cadeia de caracteres JSON.This method does not parse the contents of a JSON string value.

Aplica-se a