JsonElement.GetDecimal Metod

Definition

Hämtar det aktuella JSON-numret som en Decimal.

public:
 System::Decimal GetDecimal();
public decimal GetDecimal();
member this.GetDecimal : unit -> decimal
Public Function GetDecimal () As Decimal

Returer

Det aktuella JSON-talet som en Decimal.

Undantag

Värdet kan inte representeras som en Decimal.

Den överordnade JsonDocument har tagits bort.

Kommentarer

Den här metoden parsar inte innehållet i ett JSON-strängvärde.

Gäller för

Se även