| Visual Basic (Declaration) | |
|---|---|
Public Overrides Function Seek( _ ByVal offset As Long, _ ByVal origin As SeekOrigin _ ) As Long | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MessageStream Dim offset As Long Dim origin As SeekOrigin Dim value As Long value = instance.Seek(offset, origin) | |
| C# | |
|---|---|
public override long Seek( long offset, SeekOrigin origin ) | |
| Managed Extensions for C++ | |
|---|---|
public: long Seek( long offset, SeekOrigin origin ) override | |
| C++/CLI | |
|---|---|
public: int64 Seek( int64 offset, SeekOrigin origin ) override | |
Parameters
- offset
- The new position within the stream
- origin
- A value of type SeekOrigin, which acts as the seek reference point.
| Exception | Description |
|---|---|
| System.NotSupportedException | Always thrown by this method. |
This method is not supported, and always throws a NotSupportedException.
Target Platforms: Microsoft .NET Framework 2.0