CryptoStream.Seek(Int64, SeekOrigin) 方法

定义

设置当前流中的位置。Sets the position within the current stream.

public:
 override long Seek(long offset, System::IO::SeekOrigin origin);
public override long Seek (long offset, System.IO.SeekOrigin origin);
override this.Seek : int64 * System.IO.SeekOrigin -> int64
Public Overrides Function Seek (offset As Long, origin As SeekOrigin) As Long

参数

offset
Int64

相对于 origin 参数的字节偏移量。A byte offset relative to the origin parameter.

origin
SeekOrigin

一个 SeekOrigin 对象,该对象指示用于获得新位置的参考点。A SeekOrigin object indicating the reference point used to obtain the new position.

返回

不支持此方法。This method is not supported.

异常

不支持此方法。This method is not supported.

注解

此方法的存在只是为了支持从 Stream继承,因此不能使用。This method exists only to support inheritance from Stream, and cannot be used.

适用于

另请参阅