Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / DllNotFoundException.cs / 1305376 / DllNotFoundException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: DllNotFoundException
**
**
** Purpose: The exception class for some failed P/Invoke calls.
**
**
=============================================================================*/
namespace System {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable] public class DllNotFoundException : TypeLoadException {
public DllNotFoundException()
: base(Environment.GetResourceString("Arg_DllNotFoundException")) {
SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
}
public DllNotFoundException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
}
public DllNotFoundException(String message, Exception inner)
: base(message, inner) {
SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
}
[System.Security.SecuritySafeCritical] // auto-generated
protected DllNotFoundException(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: DllNotFoundException
**
**
** Purpose: The exception class for some failed P/Invoke calls.
**
**
=============================================================================*/
namespace System {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable] public class DllNotFoundException : TypeLoadException {
public DllNotFoundException()
: base(Environment.GetResourceString("Arg_DllNotFoundException")) {
SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
}
public DllNotFoundException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
}
public DllNotFoundException(String message, Exception inner)
: base(message, inner) {
SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
}
[System.Security.SecuritySafeCritical] // auto-generated
protected DllNotFoundException(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
- GlyphCache.cs
- DiagnosticTrace.cs
- Calendar.cs
- XmlSchemaAnyAttribute.cs
- XPathScanner.cs
- SerialPinChanges.cs
- MenuItemBindingCollection.cs
- KeyNotFoundException.cs
- RuleAttributes.cs
- BezierSegment.cs
- DeclarativeCatalogPart.cs
- HostingEnvironmentWrapper.cs
- HashCodeCombiner.cs
- CompatibleIComparer.cs
- XmlJsonReader.cs
- DataTemplate.cs
- SqlConnection.cs
- TemplateContentLoader.cs
- MissingMemberException.cs
- SqlUDTStorage.cs
- XmlChildNodes.cs
- RoleGroupCollection.cs
- EditingCommands.cs
- MemberDescriptor.cs
- Reference.cs
- ListViewItemEventArgs.cs
- SoapReflector.cs
- WindowsToolbarItemAsMenuItem.cs
- Bits.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ConstructorArgumentAttribute.cs
- QueryCacheKey.cs
- QueryOperatorEnumerator.cs
- BitmapSourceSafeMILHandle.cs
- XamlReaderHelper.cs
- CodeRemoveEventStatement.cs
- CharAnimationUsingKeyFrames.cs
- XPathNavigator.cs
- MissingMethodException.cs
- GridViewPageEventArgs.cs
- ZoneIdentityPermission.cs
- XmlCodeExporter.cs
- DesignerImageAdapter.cs
- SQLMoneyStorage.cs
- TreeView.cs
- PathGeometry.cs
- ServiceDescriptions.cs
- DetailsViewUpdateEventArgs.cs
- IgnoreFileBuildProvider.cs
- CodePageUtils.cs
- ImageCodecInfo.cs
- StreamSecurityUpgradeInitiatorBase.cs
- TypeReference.cs
- SmiContext.cs
- GuidConverter.cs
- shaperfactoryquerycacheentry.cs
- ProtocolInformationReader.cs
- UriSection.cs
- ExpressionWriter.cs
- Int32Collection.cs
- FeedUtils.cs
- RoleGroupCollection.cs
- HtmlHead.cs
- TextMarkerSource.cs
- IndicShape.cs
- CodeVariableDeclarationStatement.cs
- ProgressBarHighlightConverter.cs
- OleDbEnumerator.cs
- AsyncWaitHandle.cs
- ButtonChrome.cs
- SocketException.cs
- Thread.cs
- GeneralTransformGroup.cs
- BaseDataBoundControl.cs
- AuthenticatingEventArgs.cs
- DataErrorValidationRule.cs
- CreateUserErrorEventArgs.cs
- PackageFilter.cs
- VerificationAttribute.cs
- WebPartMenu.cs
- OrElse.cs
- DataGridViewSelectedRowCollection.cs
- UInt16Converter.cs
- DataGridViewAdvancedBorderStyle.cs
- InternalMappingException.cs
- StorageFunctionMapping.cs
- ContextMenu.cs
- SpellerError.cs
- EntityDataSourceContextCreatingEventArgs.cs
- SQLMembershipProvider.cs
- DesignerAttributeInfo.cs
- MiniConstructorInfo.cs
- TypeConverterAttribute.cs
- WindowsFormsSynchronizationContext.cs
- Content.cs
- URI.cs
- UnsafeMethods.cs
- BaseCollection.cs
- File.cs
- PictureBox.cs