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
- DataGridViewImageCell.cs
- DataSourceSerializationException.cs
- COAUTHIDENTITY.cs
- DropSourceBehavior.cs
- UserControl.cs
- FormsAuthenticationEventArgs.cs
- PersistenceProviderElement.cs
- CancelRequestedQuery.cs
- TokenizerHelper.cs
- UnconditionalPolicy.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- DataGridViewRowEventArgs.cs
- DataConnectionHelper.cs
- TabPageDesigner.cs
- BitmapEffectGeneralTransform.cs
- DataControlField.cs
- ListSortDescription.cs
- Emitter.cs
- Viewport2DVisual3D.cs
- WindowsMenu.cs
- UInt32Converter.cs
- DataColumnPropertyDescriptor.cs
- WebPartZone.cs
- SynchronizedInputPattern.cs
- OutputCacheSection.cs
- MemoryStream.cs
- ToolTipAutomationPeer.cs
- InternalConfigHost.cs
- printdlgexmarshaler.cs
- ValidatorCollection.cs
- TextBox.cs
- ServiceDiscoveryElement.cs
- ScrollBarAutomationPeer.cs
- RSAPKCS1SignatureFormatter.cs
- WebPartAddingEventArgs.cs
- XmlCDATASection.cs
- PrintPreviewControl.cs
- COM2ComponentEditor.cs
- COM2Properties.cs
- ComboBoxAutomationPeer.cs
- AuthorizationSection.cs
- MarkupObject.cs
- MoveSizeWinEventHandler.cs
- FilteredAttributeCollection.cs
- AssemblyAttributesGoHere.cs
- CanonicalFormWriter.cs
- LineSegment.cs
- ImageMapEventArgs.cs
- SecurityResources.cs
- CommandEventArgs.cs
- GeneralTransform.cs
- MatrixCamera.cs
- CommandLineParser.cs
- HTMLTextWriter.cs
- AssemblyHash.cs
- DataBindEngine.cs
- DesignerActionUI.cs
- DataGridBoolColumn.cs
- RecordsAffectedEventArgs.cs
- CompressEmulationStream.cs
- DynamicRenderer.cs
- PrinterSettings.cs
- AdornerPresentationContext.cs
- RegularExpressionValidator.cs
- FontNamesConverter.cs
- ResourceSetExpression.cs
- BamlRecordWriter.cs
- RegionIterator.cs
- WebRequestModulesSection.cs
- SamlSecurityTokenAuthenticator.cs
- XComponentModel.cs
- PersistenceTypeAttribute.cs
- ErrorWebPart.cs
- SelectionRange.cs
- NameScopePropertyAttribute.cs
- XmlSerializerVersionAttribute.cs
- HttpNamespaceReservationInstallComponent.cs
- HttpListenerContext.cs
- __TransparentProxy.cs
- BuildResultCache.cs
- SqlGenerator.cs
- XmlLanguageConverter.cs
- RunInstallerAttribute.cs
- ToolboxControl.cs
- AssociationType.cs
- MaskDescriptors.cs
- FileDialogCustomPlaces.cs
- ObjectDataSourceDisposingEventArgs.cs
- CodeGotoStatement.cs
- WebPartVerb.cs
- ElementProxy.cs
- BoolLiteral.cs
- ProxyWebPartManager.cs
- BmpBitmapDecoder.cs
- Point3DAnimationUsingKeyFrames.cs
- XsltQilFactory.cs
- VScrollProperties.cs
- MenuItem.cs
- XMLDiffLoader.cs
- XmlDocumentFragment.cs