Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / IO / DirectoryNotFoundException.cs / 1 / DirectoryNotFoundException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: DirectoryNotFoundException ** ** ** Purpose: Exception for accessing a path that doesn't exist. ** ** ===========================================================*/ using System; using System.Runtime.Serialization; namespace System.IO { /* * Thrown when trying to access a directory that doesn't exist on disk. * From COM Interop, this exception is thrown for 2 HRESULTS: * the Win32 errorcode-as-HRESULT ERROR_PATH_NOT_FOUND (0x80070003) * and STG_E_PATHNOTFOUND (0x80030003). */ [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class DirectoryNotFoundException : IOException { public DirectoryNotFoundException() : base(Environment.GetResourceString("Arg_DirectoryNotFoundException")) { SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); } public DirectoryNotFoundException(String message) : base(message) { SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); } public DirectoryNotFoundException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); } protected DirectoryNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Tuple.cs
- ModelItemCollection.cs
- NonceToken.cs
- HtmlLabelAdapter.cs
- ListControl.cs
- InkCanvasFeedbackAdorner.cs
- CodeExpressionStatement.cs
- WebServiceHandlerFactory.cs
- ListChangedEventArgs.cs
- Zone.cs
- FacetChecker.cs
- BitmapVisualManager.cs
- HandlerMappingMemo.cs
- StackSpiller.Generated.cs
- ContentType.cs
- PropertyIDSet.cs
- XPathCompileException.cs
- XmlSchema.cs
- DataChangedEventManager.cs
- CustomAttributeFormatException.cs
- ServiceDefaults.cs
- DataGridViewCellLinkedList.cs
- WsdlInspector.cs
- DataMemberFieldConverter.cs
- SafeFileHandle.cs
- DataGridViewControlCollection.cs
- Fx.cs
- SafeRightsManagementEnvironmentHandle.cs
- BitmapEffectInput.cs
- SemanticTag.cs
- smtpconnection.cs
- ObfuscateAssemblyAttribute.cs
- Control.cs
- DynamicQueryableWrapper.cs
- SiteMapDataSourceView.cs
- HttpContextServiceHost.cs
- _ServiceNameStore.cs
- SharedPerformanceCounter.cs
- ArrayTypeMismatchException.cs
- ProvidersHelper.cs
- CompareValidator.cs
- SoapFormatExtensions.cs
- StylusButtonEventArgs.cs
- DragEventArgs.cs
- TextDecorationCollectionConverter.cs
- XmlChoiceIdentifierAttribute.cs
- SHA512.cs
- BuilderPropertyEntry.cs
- FormDesigner.cs
- ClientSettingsStore.cs
- Invariant.cs
- Preprocessor.cs
- TreeIterators.cs
- LinkedResource.cs
- _IPv4Address.cs
- OdbcDataReader.cs
- ArrayWithOffset.cs
- TargetException.cs
- Triangle.cs
- ISAPIApplicationHost.cs
- HttpWriter.cs
- CqlLexer.cs
- DataPagerFieldCommandEventArgs.cs
- SafeFileMappingHandle.cs
- ConfigurationSettings.cs
- UniqueSet.cs
- ChtmlPageAdapter.cs
- AttributeTableBuilder.cs
- HttpApplicationFactory.cs
- TypeConverterAttribute.cs
- MaskInputRejectedEventArgs.cs
- TextTreeExtractElementUndoUnit.cs
- AutoSizeToolBoxItem.cs
- FigureHelper.cs
- DataTableClearEvent.cs
- Viewport2DVisual3D.cs
- RuntimeConfigLKG.cs
- MessageEnumerator.cs
- DbProviderManifest.cs
- SqlRecordBuffer.cs
- TabletDevice.cs
- LineGeometry.cs
- DeclarativeCatalogPartDesigner.cs
- SafeFileMappingHandle.cs
- MyContact.cs
- PreservationFileWriter.cs
- SiteMapSection.cs
- SocketElement.cs
- ClassGenerator.cs
- CodeStatementCollection.cs
- ReaderContextStackData.cs
- Aggregates.cs
- HijriCalendar.cs
- MenuAdapter.cs
- SelectionPattern.cs
- Metadata.cs
- IndependentAnimationStorage.cs
- InvokeProviderWrapper.cs
- UriWriter.cs
- ObjectDataSourceView.cs