// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
using System.Runtime.Serialization;
+using System.Runtime.InteropServices;
namespace System.Threading
{
[Serializable]
+ [ComVisible (false)]
public class AbandonedMutexException : SystemException
{
Mutex mutex;
{
}
- public AbandonedMutexException(string message)
+ public AbandonedMutexException (string message)
: base (message)
{
}
- public AbandonedMutexException (int location,
- WaitHandle handle)
+ public AbandonedMutexException (int location, WaitHandle handle)
: base ("Mutex was abandoned")
{
mutex_index = location;
}
- protected AbandonedMutexException(SerializationInfo info,
- StreamingContext context)
+ protected AbandonedMutexException (SerializationInfo info, StreamingContext context)
: base (info, context)
{
}
- public AbandonedMutexException(string message,
- Exception innerException)
- : base (message, innerException)
+ public AbandonedMutexException (string message, Exception inner)
+ : base (message, inner)
{
}
- public AbandonedMutexException (string message, int location,
- WaitHandle handle)
+ public AbandonedMutexException (string message, int location, WaitHandle handle)
: base (message)
{
mutex_index = location;
mutex = handle as Mutex;
}
- public AbandonedMutexException (string message,
- Exception inner, int location,
- WaitHandle handle)
+ public AbandonedMutexException (string message, Exception inner, int location, WaitHandle handle)
: base (message, inner)
{
mutex_index = location;
}
}
}
-
-#endif