New test.
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / ComObjectInUseException.cs
1 //
2 // System.Runtime.InteropServices.ComObjectInUseException
3 //
4 // Author:
5 //   Kazuki Oikawa  (kazuki@panicode.com)
6 //
7
8 #if NET_2_0
9
10 using System;
11 using System.Runtime.Serialization;
12
13 namespace System.Runtime.InteropServices
14 {
15         [Serializable]
16         public class ComObjectInUseException : SystemException
17         {
18                 private const int ErrorCode = -2146233046;
19
20                 public ComObjectInUseException () : base ()
21                 {
22                         HResult = ErrorCode;
23                 }
24
25                 public ComObjectInUseException (string message) : base (message)
26                 {
27                         HResult = ErrorCode;
28                 }
29
30                 protected ComObjectInUseException (SerializationInfo info, StreamingContext context) : base (info, context)
31                 {
32                 }
33
34                 public ComObjectInUseException (string message, Exception inner) : base (message, inner)
35                 {
36                         HResult = ErrorCode;
37                 }
38         }
39 }
40 #endif