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 以 little-endian 格式读取此数据类型。

有关常见 I/O 任务的列表,请参阅 常见 I/O 任务

适用于

另请参阅