![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
Seek Method (offset, origin)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression.Zip ► CrcStream ► Seek(Int64, SeekOrigin)
Sets the position within the source stream.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public override long Seek( long offset, SeekOrigin origin )
Public Overrides Function Seek ( offset As Long, origin As SeekOrigin ) As Long
public: virtual long long Seek( long long offset, SeekOrigin origin ) override
![](collapse_all.gif)
- offset (Int64)
- 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.
![](collapse_all.gif)
Int64
The new position within the source stream.
The new position within the source stream.
![](collapse_all.gif)
Note the CRC is only calculated over bytes that are actually read or
written, so any bytes skipped by seeking will not contribute to the CRC.
Assembly: Microsoft.Deployment.Compression.Zip (Module: Microsoft.Deployment.Compression.Zip.dll) Version: 3.0.0.0 (3.9.1006.0)