Sets the current position of this stream to the given value.
Namespace: VcClient.TestAssembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)
Syntax
C# |
---|
public override long Seek(
long offset,
SeekOrigin origin
) |
Visual Basic |
---|
Public Overrides Function Seek ( _
offset As Long, _
origin As SeekOrigin _
) As Long |
Visual C++ |
---|
public:
virtual long long Seek(
long long offset,
SeekOrigin origin
) override |
Parameters
- offset
- Type: Int64
The point relative to origin from which to begin seeking.
- origin
- Type: SeekOrigin
Specifies the beginning, the end, or the current position as a reference
point for origin, using a value of type SeekOrigin.
Return Value
The new position in the stram.
Exceptions
Exception | Condition |
---|
IOException | An I/O error occurs |
ArgumentException | Attempted seeking before the beginning of the
stream. |
ObjectDisposedException | Methods were called after the stream was
closed. |
See Also