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
- OutOfMemoryException.cs
- AnnotationAdorner.cs
- PropertyGridCommands.cs
- TextRange.cs
- MultilineStringConverter.cs
- HttpMethodConstraint.cs
- Wizard.cs
- Range.cs
- StylusCaptureWithinProperty.cs
- BatchWriter.cs
- HandlerWithFactory.cs
- SerializationFieldInfo.cs
- FontFamily.cs
- PropertyGroupDescription.cs
- DragEventArgs.cs
- XPathQilFactory.cs
- SessionStateUtil.cs
- RangeBase.cs
- FlowLayoutSettings.cs
- PropertyStore.cs
- DataReaderContainer.cs
- OverrideMode.cs
- CharacterBufferReference.cs
- SQLChars.cs
- MissingFieldException.cs
- RightsManagementManager.cs
- SimpleApplicationHost.cs
- PathSegment.cs
- Int32Animation.cs
- _NetRes.cs
- WSSecurityJan2004.cs
- WsiProfilesElement.cs
- ImageClickEventArgs.cs
- UpdateProgress.cs
- XmlTextReaderImplHelpers.cs
- ExpressionConverter.cs
- ObjectPersistData.cs
- OutputCacheSettingsSection.cs
- CaseInsensitiveComparer.cs
- FieldValue.cs
- ExitEventArgs.cs
- StrongNameUtility.cs
- InputMethodStateChangeEventArgs.cs
- _Events.cs
- WorkflowViewService.cs
- OracleFactory.cs
- IsolatedStorage.cs
- Rect.cs
- OdbcEnvironment.cs
- ZipIOCentralDirectoryBlock.cs
- DesignerProperties.cs
- XpsSerializationException.cs
- Convert.cs
- CustomAttributeFormatException.cs
- DateTimePicker.cs
- CopyNodeSetAction.cs
- LocalIdKeyIdentifierClause.cs
- ModelItemDictionary.cs
- PropertySourceInfo.cs
- SoapObjectReader.cs
- DeflateEmulationStream.cs
- SetterBase.cs
- ExtractorMetadata.cs
- ExtensionFile.cs
- UIElementParaClient.cs
- MeasureData.cs
- WebPartConnectVerb.cs
- XamlBrushSerializer.cs
- AddIn.cs
- AdornerHitTestResult.cs
- BitmapEffectInputConnector.cs
- TextBox.cs
- TraceHandler.cs
- SliderAutomationPeer.cs
- Expressions.cs
- TextViewBase.cs
- DefaultWorkflowTransactionService.cs
- ExpressionConverter.cs
- BlockUIContainer.cs
- NamespaceList.cs
- DBCommand.cs
- WebPartCancelEventArgs.cs
- RuntimeWrappedException.cs
- XmlSigningNodeWriter.cs
- BindingBase.cs
- DrawingVisualDrawingContext.cs
- XmlDataSource.cs
- SystemResources.cs
- DoubleAnimationBase.cs
- AnyReturnReader.cs
- SimpleBitVector32.cs
- KeyedPriorityQueue.cs
- HttpCapabilitiesEvaluator.cs
- Ray3DHitTestResult.cs
- ClusterRegistryConfigurationProvider.cs
- XmlHierarchicalEnumerable.cs
- EllipseGeometry.cs
- BufferedMessageData.cs
- DataTableClearEvent.cs
- OneOfScalarConst.cs