EncryptingStream.Seek Method
Public Overrides Function Seek( _
ByVal offset As Long, _
ByVal origin As SeekOrigin _
) As Long
This language is not supported or no code example is available.
public override long Seek(
long offset,
SeekOrigin origin
)
This language is not supported or no code example is available.
public:
long Seek(
long offset,
SeekOrigin origin
)
This language is not supported or no code example is available.
Parameters
- offset
- long
A byte offset relative to the origin parameter.
- origin
- SeekOrigin
A value of type SeekOrigin indicating the reference point used to obtain the new position.
Return Value
longThe new position within the current stream.
Exception type | Condition |
---|---|
An I/O error occurs. |
|
Methods were called after the stream was closed. |
|
The stream does not support seeking, such as if the stream is constructed from a pipe or console output. |