JsonElement.TryGetUInt16(UInt16) Método
Definição
Importante
Esta API não está em conformidade com CLS.
public:
bool TryGetUInt16([Runtime::InteropServices::Out] System::UInt16 % value);
[System.CLSCompliant(false)]
public bool TryGetUInt16 (out ushort value);
[<System.CLSCompliant(false)>]
member this.TryGetUInt16 : uint16 -> bool
Public Function TryGetUInt16 (ByRef value As UShort) As Boolean
Parâmetros
- value
- UInt16
Quando o método é retornado, contém o equivalente inteiro de 16 bits sem sinal do número JSON atual se a conversão foi bem-sucedida.When the method returns, contains the unsigned 16-bit integer equivalent of the current JSON number if the conversion succeeded.
Retornos
true se o número puder ser representado como um UInt16; caso contrário, false.true if the number can be represented as a UInt16; otherwise, false.
- Atributos
Exceções
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.