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
- SqlDependencyUtils.cs
- AttachedAnnotationChangedEventArgs.cs
- DockPatternIdentifiers.cs
- ToolStripDropTargetManager.cs
- KeyValueConfigurationElement.cs
- UserPreferenceChangedEventArgs.cs
- counter.cs
- PageRouteHandler.cs
- DefaultWorkflowTransactionService.cs
- FieldToken.cs
- SchemaType.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- CheckedPointers.cs
- TemplatedWizardStep.cs
- SocketPermission.cs
- DataContractSerializerElement.cs
- SrgsRule.cs
- ResourcesBuildProvider.cs
- PseudoWebRequest.cs
- HttpRequestTraceRecord.cs
- IteratorDescriptor.cs
- MonitorWrapper.cs
- RNGCryptoServiceProvider.cs
- LinqDataSourceView.cs
- ObjectTokenCategory.cs
- XamlTreeBuilderBamlRecordWriter.cs
- FtpWebRequest.cs
- HttpContextServiceHost.cs
- PersonalizableTypeEntry.cs
- UpdateCompiler.cs
- ExpressionReplacer.cs
- EventLogger.cs
- RSAPKCS1SignatureDeformatter.cs
- UTF7Encoding.cs
- NetworkInformationPermission.cs
- Visual3D.cs
- MutableAssemblyCacheEntry.cs
- CompiledELinqQueryState.cs
- AuthenticationSection.cs
- hresults.cs
- ClipboardProcessor.cs
- HandleTable.cs
- DataRow.cs
- figurelengthconverter.cs
- RuntimeConfig.cs
- IsolatedStoragePermission.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- GrabHandleGlyph.cs
- ServerValidateEventArgs.cs
- OleDbDataReader.cs
- DataGridViewComboBoxEditingControl.cs
- WhitespaceReader.cs
- SecurityTraceRecordHelper.cs
- UIElementPropertyUndoUnit.cs
- FormsAuthentication.cs
- ValidationHelper.cs
- StorageModelBuildProvider.cs
- ActiveXHelper.cs
- GradientStopCollection.cs
- PropertyItemInternal.cs
- ClientTarget.cs
- ComponentCollection.cs
- KeySpline.cs
- BitmapEffect.cs
- DataServiceQueryProvider.cs
- FullTextBreakpoint.cs
- Converter.cs
- ProjectionPathBuilder.cs
- EntityDesignerUtils.cs
- BindMarkupExtensionSerializer.cs
- FixedPosition.cs
- GenericPrincipal.cs
- DeclarativeCatalogPart.cs
- FullTextBreakpoint.cs
- ParameterElement.cs
- TextBlockAutomationPeer.cs
- PointLightBase.cs
- ClientCultureInfo.cs
- AssemblyResourceLoader.cs
- SqlDuplicator.cs
- LoadRetryHandler.cs
- ListMarkerLine.cs
- XmlBindingWorker.cs
- RegisteredArrayDeclaration.cs
- ImageInfo.cs
- dbenumerator.cs
- TracingConnectionInitiator.cs
- WebServiceMethodData.cs
- SourceSwitch.cs
- CheckBox.cs
- BooleanExpr.cs
- TemplateBindingExtensionConverter.cs
- OrderToken.cs
- SettingsContext.cs
- ContextStaticAttribute.cs
- StickyNoteAnnotations.cs
- CodeVariableDeclarationStatement.cs
- HttpWriter.cs
- _NativeSSPI.cs
- LowerCaseStringConverter.cs