1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System
.Runtime
.Serialization
;
10 [System
.Runtime
.CompilerServices
.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
11 public class IOException
: SystemException
14 : base(SR
.Arg_IOException
)
16 HResult
= HResults
.COR_E_IO
;
19 public IOException(string? message
)
22 HResult
= HResults
.COR_E_IO
;
25 public IOException(string? message
, int hresult
)
31 public IOException(string? message
, Exception
? innerException
)
32 : base(message
, innerException
)
34 HResult
= HResults
.COR_E_IO
;
37 protected IOException(SerializationInfo info
, StreamingContext context
) : base(info
, context
)