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
- ByteAnimation.cs
- Pts.cs
- DataGridTemplateColumn.cs
- AssociationEndMember.cs
- AsyncSerializedWorker.cs
- JournalEntryStack.cs
- ContentControl.cs
- UserPrincipalNameElement.cs
- ConditionalBranch.cs
- SafeFileMappingHandle.cs
- RightsManagementInformation.cs
- TextElementAutomationPeer.cs
- SynchronizationLockException.cs
- SettingsSection.cs
- JsonServiceDocumentSerializer.cs
- DataObjectCopyingEventArgs.cs
- DataGridViewLinkCell.cs
- SelectionHighlightInfo.cs
- UnsafeNativeMethods.cs
- XmlReflectionMember.cs
- PersonalizationStateInfoCollection.cs
- HtmlMobileTextWriter.cs
- NativeMethodsOther.cs
- QilUnary.cs
- SqlParameter.cs
- HotSpotCollectionEditor.cs
- CodeCatchClauseCollection.cs
- OleDbDataReader.cs
- LocatorGroup.cs
- XslCompiledTransform.cs
- PipelineModuleStepContainer.cs
- ConditionalAttribute.cs
- CharStorage.cs
- Positioning.cs
- FactoryGenerator.cs
- LoginView.cs
- CharUnicodeInfo.cs
- Expressions.cs
- DependentList.cs
- Util.cs
- RegexCompilationInfo.cs
- SqlTopReducer.cs
- CompModSwitches.cs
- EntityDataSourceWrapper.cs
- DeploymentSection.cs
- GridItem.cs
- PropertyNames.cs
- ServiceModelConfigurationSectionCollection.cs
- ScriptComponentDescriptor.cs
- CodeStatementCollection.cs
- ButtonBase.cs
- BulletChrome.cs
- ConfigsHelper.cs
- DesignerSerializationVisibilityAttribute.cs
- XPathQilFactory.cs
- LassoHelper.cs
- WsdlBuildProvider.cs
- DefaultWorkflowLoaderService.cs
- FixedPageStructure.cs
- WorkflowDataContext.cs
- ArgumentFixer.cs
- TryCatch.cs
- CommandDevice.cs
- XsdValidatingReader.cs
- BinaryObjectWriter.cs
- OdbcFactory.cs
- FromReply.cs
- BitmapFrameEncode.cs
- GridViewCancelEditEventArgs.cs
- Vector.cs
- PerformanceCounter.cs
- WebBrowserUriTypeConverter.cs
- ServiceDescriptionData.cs
- NumberEdit.cs
- PeerService.cs
- PrivilegeNotHeldException.cs
- HwndSourceParameters.cs
- ExpressionConverter.cs
- ACL.cs
- ProcessHostFactoryHelper.cs
- LeaseManager.cs
- FlowDocumentPage.cs
- AppDomain.cs
- TdsRecordBufferSetter.cs
- RemoteWebConfigurationHost.cs
- EntityDataSourceColumn.cs
- CodeDomConfigurationHandler.cs
- DataGridCaption.cs
- FigureParagraph.cs
- Vector3DAnimation.cs
- dataobject.cs
- ThrowHelper.cs
- ResourcePart.cs
- SectionRecord.cs
- SmtpSection.cs
- GenericArgumentsUpdater.cs
- ResponseStream.cs
- ReadOnlyCollectionBase.cs
- PropertyMetadata.cs
- BamlResourceDeserializer.cs