COMCharStream.Seek(Int64, SeekOrigin) COMCharStream.Seek(Int64, SeekOrigin) COMCharStream.Seek(Int64, SeekOrigin) COMCharStream.Seek(Int64, SeekOrigin) Method

定義

在目前資料流中設定位置。Sets the position in the current stream. 這個方法不會有任何作用。This method does not do anything. 它永遠都會傳回 0。It always returns 0.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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 Int64 Int64 Int64

相對於 origin 參數的位元組位移。A byte offset relative to the origin parameter.

origin
SeekOrigin SeekOrigin SeekOrigin SeekOrigin

表示用來取得新位置之參考點的值。A value that indicates the reference point that is used to obtain the new position.

傳回

所有情況下都是 0。0 in all cases.

適用於

另請參閱