When overridden in a derived class, gets or sets the position within the current stream.

Namespace: Contracts
Assembly: Contracts (in Contracts.dll)

Public Overrides Property Position() As Long
This language is not supported or no code example is available.
public override long Position {get; set;}
This language is not supported or no code example is available.
public:  
property long Position { 
long get( ); 
void set( 
long value 
); 
}
This language is not supported or no code example is available.
public function get Position() : long
public function set Position(value : long);
This language is not supported or no code example is available.

Property Value

Type: long

The current position within the stream.

Exception type Condition

IOException

An I/O error occurs.

ObjectDisposedException

Methods were called after the stream was closed.

NotSupportedException

The stream does not support seeking.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1