Files
SSCLI-sscli_20021101/clr/src/bcl/system/appdomainunloadedexception.cs
T
yallie 9fa3874800 Added the contents of the archive.
Moved the original file to the archive subfolder.
2017-11-20 16:11:42 +03:00

60 lines
2.4 KiB
C#

// ==++==
//
//
// Copyright (c) 2002 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to be bound by the
// terms of this license.
//
// You must not remove this notice, or any other, from this software.
//
//
// ==--==
/*=============================================================================
**
** Class: AppDomainUnloadedException
**
**
**
** Purpose: Exception class for attempt to access an unloaded AppDomain
**
** Date: March 17, 1998
**
=============================================================================*/
namespace System {
using System.Runtime.Serialization;
/// <include file='doc\AppDomainUnloadedException.uex' path='docs/doc[@for="AppDomainUnloadedException"]/*' />
[Serializable()] public class AppDomainUnloadedException : SystemException {
/// <include file='doc\AppDomainUnloadedException.uex' path='docs/doc[@for="AppDomainUnloadedException.AppDomainUnloadedException"]/*' />
public AppDomainUnloadedException()
: base(Environment.GetResourceString("Arg_AppDomainUnloadedException")) {
SetErrorCode(__HResults.COR_E_APPDOMAINUNLOADED);
}
/// <include file='doc\AppDomainUnloadedException.uex' path='docs/doc[@for="AppDomainUnloadedException.AppDomainUnloadedException1"]/*' />
public AppDomainUnloadedException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_APPDOMAINUNLOADED);
}
/// <include file='doc\AppDomainUnloadedException.uex' path='docs/doc[@for="AppDomainUnloadedException.AppDomainUnloadedException2"]/*' />
public AppDomainUnloadedException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_APPDOMAINUNLOADED);
}
//
//This constructor is required for serialization.
//
/// <include file='doc\AppDomainUnloadedException.uex' path='docs/doc[@for="AppDomainUnloadedException.AppDomainUnloadedException3"]/*' />
protected AppDomainUnloadedException(SerializationInfo info, StreamingContext context) : base(info, context) {
}
}
}