Gets or sets the position within the current stream.

Namespace:  Rebex.Security
Assembly:  Rebex.Security (in Rebex.Security.dll)

Syntax

Visual Basic
Public Overrides Property Position As Long
	Get
	Set
C#
public override long Position { get; set; }

Return Value

The current position within the stream.

Exceptions

ExceptionCondition
System.IO..::..IOException An I/O error occurs.
System..::..NotSupportedException The stream does not support seeking.
System..::..ObjectDisposedException Methods were called after the stream was closed.
System..::..InvalidOperationException Position is set to a negative number or is greater than the stream length. If you need to increase stream length, use the SetLength method first.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also