BinaryWriter.Write Method (Int64) (System.IO)

Switch View :
ScriptFree
BinaryWriter.Write Method (Int64)
Writes an eight-byte signed integer to the current stream and advances the stream position by eight bytes.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

Visual Basic (Declaration)
Public Overridable Sub Write ( _
	value As Long _
)
Visual Basic (Usage)
Dim instance As BinaryWriter
Dim value As Long

instance.Write(value)
C#
public virtual void Write (
	long value
)
C++
public:
virtual void Write (
	long long value
)
J#
public void Write (
	long value
)
JScript
public function Write (
	value : long
)
XAML
Not applicable.

Parameters

value

The eight-byte signed integer to write.

Exceptions

Exception type Condition

IOException

An I/O error occurs.

ObjectDisposedException

The stream is closed.

Remarks

BinaryWriter stores this data type in little endian format.

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

Platforms

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0
See Also