UCOMIStream.Seek(Int64, Int32, IntPtr) 方法

定義

變更搜尋指標到相對於資料流開頭的新位置、到資料流結尾,或到目前的搜尋指標。Changes the seek pointer to a new location relative to the beginning of the stream, to the end of the stream, or to the current seek pointer.

public:
 void Seek(long dlibMove, int dwOrigin, IntPtr plibNewPosition);
public void Seek (long dlibMove, int dwOrigin, IntPtr plibNewPosition);
abstract member Seek : int64 * int * nativeint -> unit
Public Sub Seek (dlibMove As Long, dwOrigin As Integer, plibNewPosition As IntPtr)

參數

dlibMove
Int64

要加入至 dwOrigin 的替代。Displacement to add to dwOrigin.

dwOrigin
Int32

指定搜尋的原點。Specifies the origin of the seek. 原點可以是檔案的開頭、目前的搜尋指標或是檔案的結尾。The origin can be the beginning of the file, the current seek pointer, or the end of the file.

plibNewPosition
IntPtr

在成功傳回時,含有搜尋指標從資料流開頭的位移。On successful return, contains the offset of the seek pointer from the beginning of the stream.

備註

如需詳細資訊,請參閱 MSDN library 中的 IStream::Seek 的現有檔。For more information, please see the existing documentation for IStream::Seek in the MSDN library.

適用於