JsonElement.GetDecimal 메서드

정의

현재 JSON 숫자를 Decimal로 가져옵니다.

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

반환

Decimal

현재 JSON 숫자는 Decimal입니다.

예외

이 값의 ValueKindNumber가 아닙니다.

값은 Decimal로 나타낼 수 없습니다.

부모 JsonDocument가 삭제되었습니다.

설명

이 메서드는 JSON 문자열 값의 내용을 구문 분석하지 않습니다.

적용 대상