System.IO.FileStream.SafeFileHandle Property

Gets a Microsoft.Win32.SafeHandles.SafeFileHandle object that represents the operating system file handle for the file that the current System.IO.FileStream object encapsulates.

Syntax

public virtual Microsoft.Win32.SafeHandles.SafeFileHandle SafeFileHandle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The FileStream.SafeFileHandle property automatically flushes the stream and sets the current stream position to 0. This allows the file to be moved or the stream position to be reset by another stream using the FileStream.SafeFileHandle returned by this property.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0