Code:
/ DotNET / DotNET / 8.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
- GestureRecognizer.cs
- ECDsaCng.cs
- HeaderCollection.cs
- _TimerThread.cs
- CacheDependency.cs
- ActiveDocumentEvent.cs
- SqlCharStream.cs
- ComponentDispatcherThread.cs
- ScriptDescriptor.cs
- DesignerAdapterUtil.cs
- Win32.cs
- DrawingContextWalker.cs
- ContextStaticAttribute.cs
- PostBackOptions.cs
- StylusDownEventArgs.cs
- TaskHelper.cs
- OdbcTransaction.cs
- AnimationClockResource.cs
- WebPartVerbsEventArgs.cs
- UpdateManifestForBrowserApplication.cs
- BooleanSwitch.cs
- XpsPackagingException.cs
- WebPartZoneBaseDesigner.cs
- GlobalAllocSafeHandle.cs
- MetaTable.cs
- ETagAttribute.cs
- ClassHandlersStore.cs
- Paragraph.cs
- ImageAutomationPeer.cs
- DataGridTextBoxColumn.cs
- ListMarkerLine.cs
- IgnoreFlushAndCloseStream.cs
- NumberFormatInfo.cs
- Claim.cs
- Block.cs
- FolderLevelBuildProviderCollection.cs
- PersonalizationProvider.cs
- Accessible.cs
- RowSpanVector.cs
- TdsParserHelperClasses.cs
- CryptoApi.cs
- Odbc32.cs
- CodeIdentifier.cs
- Int32AnimationBase.cs
- DesignUtil.cs
- AssemblyUtil.cs
- IUnknownConstantAttribute.cs
- PointHitTestParameters.cs
- SystemResourceKey.cs
- ResourcesBuildProvider.cs
- SystemInformation.cs
- SystemResourceHost.cs
- MemberRelationshipService.cs
- PerfCounters.cs
- EntityDataSourceValidationException.cs
- TreeNodeEventArgs.cs
- HitTestParameters3D.cs
- UserControl.cs
- CompatibleIComparer.cs
- EntityConnection.cs
- PropertyInfo.cs
- TextEndOfParagraph.cs
- ConfigurationException.cs
- AliasedSlot.cs
- ToolStripPanelRenderEventArgs.cs
- TypeUtil.cs
- FileLoadException.cs
- OracleSqlParser.cs
- CollectionCodeDomSerializer.cs
- EntityCollection.cs
- PolicyFactory.cs
- PropertyValueUIItem.cs
- TreeNodeCollection.cs
- CodeTypeReferenceExpression.cs
- SystemIcons.cs
- Enlistment.cs
- IconHelper.cs
- SynchronizedDispatch.cs
- ExpressionList.cs
- TreeBuilderBamlTranslator.cs
- ipaddressinformationcollection.cs
- Events.cs
- ElapsedEventArgs.cs
- CultureTableRecord.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- HttpRequest.cs
- Token.cs
- IpcServerChannel.cs
- PositiveTimeSpanValidatorAttribute.cs
- WhileDesigner.xaml.cs
- AnnotationAdorner.cs
- InsufficientMemoryException.cs
- KeyTime.cs
- SqlCacheDependencyDatabaseCollection.cs
- XNameTypeConverter.cs
- ProtocolInformationWriter.cs
- DataGridViewAddColumnDialog.cs
- UserNameSecurityToken.cs
- ManualResetEvent.cs
- NetworkInformationException.cs