Share via


FileStream.CanSeek Property

Gets a value indicating whether the current stream supports seeking.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public override bool CanSeek { get; }

Property Value

true if the stream supports seeking; false if the stream is closed or if the FileStream was constructed from an operating-system handle such as a pipe or output to the console.

Version Information

Available in .NET Micro Framework version 3.0 and above.

See Also

Reference

FileStream Class
FileStream Members
System.IO Namespace