JsonElement.TryGetUInt32(UInt32) 方法

定義

重要

此 API 不符合 CLS 規範。

嘗試以 UInt32 表示目前的 JSON 數字。

public:
 bool TryGetUInt32([Runtime::InteropServices::Out] System::UInt32 % value);
[System.CLSCompliant(false)]
public bool TryGetUInt32 (out uint value);
[<System.CLSCompliant(false)>]
member this.TryGetUInt32 : uint32 -> bool
Public Function TryGetUInt32 (ByRef value As UInteger) As Boolean

參數

value
UInt32

當這個方法傳回時,如果轉換成功,則包含與目前 JSON 數位相等的不帶正負號的 32 位整數值,如果轉換失敗,則為 0。

傳回

Boolean

若數字可以表示為 UInt32,則為 true;否則為 false

屬性

例外狀況

JsonDocument 已經過處置。

備註

這個方法不會剖析 JSON 字串值的內容。

適用於