BinaryReader.ReadUInt32 方法

定義

重要

此 API 不符合 CLS 規範。

自目前資料流讀取 4 位元組不帶正負號的整數,並將資料流目前位置前移四個位元組。

public:
 virtual System::UInt32 ReadUInt32();
[System.CLSCompliant(false)]
public virtual uint ReadUInt32 ();
[<System.CLSCompliant(false)>]
abstract member ReadUInt32 : unit -> uint32
override this.ReadUInt32 : unit -> uint32
Public Overridable Function ReadUInt32 () As UInteger

傳回

自這個資料流讀取 4 位元組不帶正負號的整數。

屬性

例外狀況

已到達資料流的末端。

資料流已關閉。

發生 I/O 錯誤。

備註

BinaryReader 不會在讀取失敗之後還原檔案位置。

BinaryReader 以位元組端格式讀取此資料類型。

如需一般 I/O 工作的清單,請參閱 一般 I/O 工作

適用於

另請參閱