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
- OperationContextScope.cs
- DataTableCollection.cs
- HandlerFactoryWrapper.cs
- ManageRequest.cs
- SessionStateContainer.cs
- XmlSerializerAssemblyAttribute.cs
- EndpointDispatcher.cs
- figurelength.cs
- FillErrorEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- ConfigurationSettings.cs
- Drawing.cs
- WindowsScrollBarBits.cs
- VSDExceptions.cs
- BaseCollection.cs
- OleDbDataReader.cs
- SpecialNameAttribute.cs
- RedistVersionInfo.cs
- FileAuthorizationModule.cs
- GenericPrincipal.cs
- AdornedElementPlaceholder.cs
- AmbientValueAttribute.cs
- UrlPath.cs
- DrawingAttributesDefaultValueFactory.cs
- AdornerPresentationContext.cs
- PageBreakRecord.cs
- PageThemeCodeDomTreeGenerator.cs
- TextBox.cs
- StaticExtension.cs
- MonthCalendar.cs
- UnicodeEncoding.cs
- DbProviderFactory.cs
- StoryFragments.cs
- DrawingImage.cs
- ValidationError.cs
- EntityDataSourceDataSelection.cs
- BinaryReader.cs
- ResourcePermissionBaseEntry.cs
- AsyncSerializedWorker.cs
- UnsafeNativeMethods.cs
- ExpressionPrinter.cs
- GridViewRowPresenterBase.cs
- QuaternionConverter.cs
- DataObjectCopyingEventArgs.cs
- MsmqProcessProtocolHandler.cs
- ArraySubsetEnumerator.cs
- SoapCodeExporter.cs
- ServiceAuthorizationBehavior.cs
- ZipIOLocalFileBlock.cs
- _UriTypeConverter.cs
- VersionPair.cs
- Models.cs
- ConfigXmlCDataSection.cs
- ToolBarTray.cs
- LayoutEngine.cs
- TimeSpanSecondsConverter.cs
- XmlWriter.cs
- xamlnodes.cs
- LZCodec.cs
- AnnotationResourceCollection.cs
- DataControlLinkButton.cs
- MultiByteCodec.cs
- CodeAccessPermission.cs
- EnumerableRowCollection.cs
- ViewCellRelation.cs
- Brush.cs
- Action.cs
- RenderDataDrawingContext.cs
- ExitEventArgs.cs
- SmiTypedGetterSetter.cs
- CollectionBase.cs
- CompareInfo.cs
- WCFModelStrings.Designer.cs
- RawStylusInput.cs
- Frame.cs
- WebPartMovingEventArgs.cs
- JsonServiceDocumentSerializer.cs
- IList.cs
- DesignTimeTemplateParser.cs
- EventRoute.cs
- Encoding.cs
- RepeaterCommandEventArgs.cs
- ActivityWithResultConverter.cs
- AdRotator.cs
- Camera.cs
- DbConnectionPoolGroup.cs
- GraphicsContext.cs
- CategoriesDocumentFormatter.cs
- ShapeTypeface.cs
- FormatException.cs
- EdmComplexTypeAttribute.cs
- BufferedConnection.cs
- NotSupportedException.cs
- ResourceProviderFactory.cs
- ElementsClipboardData.cs
- CodeExporter.cs
- XsltContext.cs
- ConnectivityStatus.cs
- DataContractFormatAttribute.cs
- DbSetClause.cs