Edit

Share via


BinaryReader.ReadUInt32 Method

Definition

Important

This API is not CLS-compliant.

Reads a 4-byte unsigned integer from the current stream and advances the position of the stream by four bytes.

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

Returns

A 4-byte unsigned integer read from this stream.

Attributes

Exceptions

The end of the stream is reached.

The stream is closed.

An I/O error occurred.

Remarks

BinaryReader does not restore the file position after an unsuccessful read.

BinaryReader reads this data type in little-endian format.

For a list of common I/O tasks, see Common I/O Tasks.

Applies to

See also