Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / TypeUnloadedException.cs / 1305376 / TypeUnloadedException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: TypeUnloadedException
**
**
** Purpose: Exception class for attempt to access an unloaded class
**
**
=============================================================================*/
namespace System {
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable]
public class TypeUnloadedException : SystemException {
public TypeUnloadedException()
: base(Environment.GetResourceString("Arg_TypeUnloadedException")) {
SetErrorCode(__HResults.COR_E_TYPEUNLOADED);
}
public TypeUnloadedException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_TYPEUNLOADED);
}
public TypeUnloadedException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_TYPEUNLOADED);
}
//
// This constructor is required for serialization;
//
[System.Security.SecuritySafeCritical] // auto-generated
protected TypeUnloadedException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: TypeUnloadedException
**
**
** Purpose: Exception class for attempt to access an unloaded class
**
**
=============================================================================*/
namespace System {
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable]
public class TypeUnloadedException : SystemException {
public TypeUnloadedException()
: base(Environment.GetResourceString("Arg_TypeUnloadedException")) {
SetErrorCode(__HResults.COR_E_TYPEUNLOADED);
}
public TypeUnloadedException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_TYPEUNLOADED);
}
public TypeUnloadedException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_TYPEUNLOADED);
}
//
// This constructor is required for serialization;
//
[System.Security.SecuritySafeCritical] // auto-generated
protected TypeUnloadedException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _NetworkingPerfCounters.cs
- TextSearch.cs
- WpfXamlLoader.cs
- ExpressionBindingCollection.cs
- nulltextcontainer.cs
- TypedDataSourceCodeGenerator.cs
- HtmlMeta.cs
- TextLine.cs
- Avt.cs
- DataGridViewMethods.cs
- MimeWriter.cs
- DesignOnlyAttribute.cs
- Rotation3D.cs
- FromRequest.cs
- StringCollectionEditor.cs
- ProgressBar.cs
- ModulesEntry.cs
- ResourceReferenceKeyNotFoundException.cs
- InstanceLockLostException.cs
- WmlSelectionListAdapter.cs
- SmtpDigestAuthenticationModule.cs
- ZipIOLocalFileBlock.cs
- ToolBar.cs
- XamlUtilities.cs
- ProtocolsConfiguration.cs
- RightsManagementInformation.cs
- XPathNavigatorKeyComparer.cs
- HttpInputStream.cs
- Cursors.cs
- HttpConfigurationContext.cs
- QilPatternFactory.cs
- CmsUtils.cs
- SyndicationSerializer.cs
- ErrorBehavior.cs
- InterleavedZipPartStream.cs
- KerberosSecurityTokenAuthenticator.cs
- DataList.cs
- DataControlReference.cs
- EventlogProvider.cs
- Vector3DAnimationBase.cs
- ViewSimplifier.cs
- ObjectKeyFrameCollection.cs
- DbCommandDefinition.cs
- GiveFeedbackEvent.cs
- UInt16.cs
- InstanceValue.cs
- DataGrid.cs
- TraceRecord.cs
- HierarchicalDataSourceControl.cs
- RangeValueProviderWrapper.cs
- DbProviderFactories.cs
- TypeInformation.cs
- FontUnit.cs
- QuaternionAnimation.cs
- TimeSpanMinutesConverter.cs
- SynchronizingStream.cs
- SchemaElementDecl.cs
- VersionUtil.cs
- BaseValidatorDesigner.cs
- ConfigurationManager.cs
- StreamWithDictionary.cs
- ClientUrlResolverWrapper.cs
- HostProtectionPermission.cs
- BypassElement.cs
- TextRunCacheImp.cs
- ModelItemDictionaryImpl.cs
- WebServiceHandlerFactory.cs
- WebPartMinimizeVerb.cs
- EmbeddedMailObject.cs
- PermissionListSet.cs
- ItemDragEvent.cs
- PermissionAttributes.cs
- FutureFactory.cs
- SafeCoTaskMem.cs
- IndexedGlyphRun.cs
- DiscoveryExceptionDictionary.cs
- PrivilegedConfigurationManager.cs
- AssemblyNameProxy.cs
- DataGridViewRowEventArgs.cs
- DefaultDialogButtons.cs
- CompilerWrapper.cs
- OptimalTextSource.cs
- CodeTypeReferenceCollection.cs
- ToolStripManager.cs
- MaterialCollection.cs
- FragmentQueryKB.cs
- IsolatedStorageException.cs
- VoiceSynthesis.cs
- BrowserCapabilitiesCompiler.cs
- TableLayoutPanelBehavior.cs
- InputScopeAttribute.cs
- BeginStoryboard.cs
- Form.cs
- UndoUnit.cs
- SQLCharsStorage.cs
- UriSection.cs
- DoubleKeyFrameCollection.cs
- OdbcReferenceCollection.cs
- WebPartsSection.cs
- OleTxTransactionInfo.cs