This documentation is archived and is not being maintained.

CryptoStream.Seek Method

Sets the position within the current stream.

[Visual Basic]
Overrides Public Function Seek( _
   ByVal offset As Long, _
   ByVal origin As SeekOrigin _
) As Long
[C#]
public override long Seek(
 long offset,
 SeekOrigin origin
);
[C++]
public: __int64 Seek(
 __int64 offset,
 SeekOrigin origin
);
[JScript]
public override function Seek(
   offset : long,
 origin : SeekOrigin
) : long;

Parameters

offset
A byte offset relative to the origin parameter.
origin
A SeekOrigin object indicating the reference point used to obtain the new position.

Return Value

This method is not supported.

Exceptions

Exception Type Condition
NotSupportedException This method is not supported.

Remarks

This method exists only to support inheritance from Stream, and cannot be used.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

CryptoStream Class | CryptoStream Members | System.Security.Cryptography Namespace | Cryptographic Services

Show: