Share via


IInteropStreamContract.Seek Method

This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.

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.

Namespace:  Microsoft.VisualStudio.Tools.Applications.Contract
Assembly:  Microsoft.VisualStudio.Tools.Applications.Contract.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Contract.v9.0.dll)

Syntax

'Declaration
Sub Seek ( _
    move As Long, _
    origin As Integer, _
    <OutAttribute> ByRef newPosition As Long _
)
'Usage
Dim instance As IInteropStreamContract 
Dim move As Long 
Dim origin As Integer 
Dim newPosition As Long

instance.Seek(move, origin, newPosition)
void Seek(
    long move,
    int origin,
    out long newPosition
)
void Seek(
    long long move, 
    int origin, 
    [OutAttribute] long long% newPosition
)
function Seek(
    move : long, 
    origin : int, 
    newPosition : long
)

Parameters

  • move
    Type: System.Int64

    The displacement to add to origin.

  • origin
    Type: System.Int32

    The origin of the seek. The origin can be the beginning of the file, the current seek pointer, or the end of the file.

  • newPosition
    Type: System.Int64%

    On successful return, contains the offset of the seek pointer from the beginning of the stream.

Remarks

Calls the IStream.Seek method of the internal copy of the stream object.

See Also

Reference

IInteropStreamContract Interface

IInteropStreamContract Members

Microsoft.VisualStudio.Tools.Applications.Contract Namespace