FileStream
FileStream(IntPtr, FileAccess)
FileStream(SafeFileHandle, FileAccess)
FileStream(String, FileMode)
FileStream(String, FileStreamOptions)
FileStream(IntPtr, FileAccess, Boolean)
FileStream(SafeFileHandle, FileAccess, Int32)
FileStream(String, FileMode, FileAccess)
FileStream(IntPtr, FileAccess, Boolean, Int32)
FileStream(SafeFileHandle, FileAccess, Int32, Boolean)
FileStream(String, FileMode, FileAccess, FileShare)
FileStream(IntPtr, FileAccess, Boolean, Int32, Boolean)
FileStream(String, FileMode, FileAccess, FileShare, Int32)
FileStream(String, FileMode, FileAccess, FileShare, Int32, Boolean)
FileStream(String, FileMode, FileAccess, FileShare, Int32, FileOptions)
FileStream(String, FileMode, FileSystemRights, FileShare, Int32, FileOptions)
FileStream(String, FileMode, FileSystemRights, FileShare, Int32, FileOptions, FileSecurity)
~FileStream()
CanRead
CanSeek
CanWrite
Handle
IsAsync
Length
Name
Position
SafeFileHandle
BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)
BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)
Close()
CopyTo(Stream, Int32)
CopyToAsync(Stream, Int32, CancellationToken)
Dispose(Boolean)
DisposeAsync()
EndRead(IAsyncResult)
EndWrite(IAsyncResult)
Flush()
Flush(Boolean)
FlushAsync(CancellationToken)
GetAccessControl()
Lock(Int64, Int64)
Read(Byte[], Int32, Int32)
Read(Span<Byte>)
ReadAsync(Byte[], Int32, Int32, CancellationToken)
ReadAsync(Memory<Byte>, CancellationToken)
ReadByte()
Seek(Int64, SeekOrigin)
SetAccessControl(FileSecurity)
SetLength(Int64)
Unlock(Int64, Int64)
Write(Byte[], Int32, Int32)
Write(ReadOnlySpan<Byte>)
WriteAsync(Byte[], Int32, Int32, CancellationToken)
WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)
WriteByte(Byte)
GetAccessControl(FileStream)
SetAccessControl(FileStream, FileSecurity)
net11.0-windows7.0
namespace System.IO
{
public class FileStream : Stream
{
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This constructor has been deprecated. Use FileStream(SafeFileHandle handle, FileAccess access) and optionally make a new SafeFileHandle with ownsHandle=false if needed instead.")]
public FileStream(IntPtr handle, FileAccess access, bool ownsHandle);
}
}
| NetFx Compat Lab | 2.3 % Reference this API |
|---|---|
| Upgrade Planner | 0.0 % Reference this API |
| .NET | 5.06.07.08.09.010.011.0 |
| .NET Core | 2.02.12.23.03.1 |
| .NET Framework | 1.01.12.03.03.54.04.54.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1 |
| .NET Standard | 2.02.1 |
Information specific to net11.0 | |
| Platforms | This API is only available when you target a specific platform: |
| Windows | 7.0 |
Information specific to net11.0-windows7.0 | |
| Assemblies | System.Runtime , Version=7.0.0.0, PublicKeyToken=b03f5f7f11d50a3a System.Runtime , Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a System.Runtime , Version=4.2.1.0, PublicKeyToken=b03f5f7f11d50a3a |
| Referencing | Requires any:
|
| Package | System.Runtime.Experimental (7.0.0-preview.2.22152.2) net7.0 |
| Obsolete | This constructor has been deprecated. Use FileStream(SafeFileHandle handle, FileAccess access) and optionally make a new SafeFileHandle with ownsHandle=false if needed instead. |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API