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
- LinearKeyFrames.cs
- WorkflowViewStateService.cs
- MembershipValidatePasswordEventArgs.cs
- LinearGradientBrush.cs
- LoginName.cs
- ProviderUtil.cs
- HotSpotCollection.cs
- Types.cs
- SizeConverter.cs
- DictionaryBase.cs
- CounterCreationData.cs
- XhtmlTextWriter.cs
- CodePropertyReferenceExpression.cs
- FileNotFoundException.cs
- DbConnectionPoolGroupProviderInfo.cs
- SendKeys.cs
- ContextMenuStripGroup.cs
- XmlSchemaAttributeGroup.cs
- SafeLibraryHandle.cs
- Misc.cs
- ISAPIWorkerRequest.cs
- EntityWrapperFactory.cs
- SelectiveScrollingGrid.cs
- TemplateBaseAction.cs
- DataGridColumnFloatingHeader.cs
- ZoneIdentityPermission.cs
- DataRelationCollection.cs
- ParagraphResult.cs
- ObjectNavigationPropertyMapping.cs
- HMACMD5.cs
- HttpRequest.cs
- XmlWrappingReader.cs
- PrimaryKeyTypeConverter.cs
- TreePrinter.cs
- AnimationException.cs
- ADConnectionHelper.cs
- BuildProvider.cs
- SoundPlayer.cs
- DesigntimeLicenseContext.cs
- SqlResolver.cs
- AssertFilter.cs
- ToolStripTextBox.cs
- TextBoxView.cs
- RegexReplacement.cs
- EFTableProvider.cs
- TextFormatterImp.cs
- tibetanshape.cs
- DocumentPage.cs
- WindowCollection.cs
- WebPartMinimizeVerb.cs
- FormViewDeleteEventArgs.cs
- TextAutomationPeer.cs
- EmissiveMaterial.cs
- CompositeFontParser.cs
- RijndaelManagedTransform.cs
- Boolean.cs
- CurrencyWrapper.cs
- BindUriHelper.cs
- IntSecurity.cs
- ClientFactory.cs
- XmlSchemaInclude.cs
- DocumentScope.cs
- ManagedWndProcTracker.cs
- PropertyToken.cs
- ChangeInterceptorAttribute.cs
- HyperLink.cs
- RectangleConverter.cs
- QilCloneVisitor.cs
- securestring.cs
- X509ChainElement.cs
- PaintValueEventArgs.cs
- Pens.cs
- Point3DAnimationBase.cs
- SmiMetaData.cs
- SchemaCollectionPreprocessor.cs
- Bits.cs
- UrlAuthFailedErrorFormatter.cs
- DesignOnlyAttribute.cs
- PointLight.cs
- StylusPointProperty.cs
- BitmapEffect.cs
- FileDialogCustomPlaces.cs
- EntityDataSourceConfigureObjectContext.cs
- BitmapEffectDrawingContent.cs
- ToolStripItemImageRenderEventArgs.cs
- AdornerHitTestResult.cs
- ResourceDisplayNameAttribute.cs
- ControlTemplate.cs
- ReflectionPermission.cs
- PageBuildProvider.cs
- PathGradientBrush.cs
- RIPEMD160.cs
- xsdvalidator.cs
- XPathScanner.cs
- WindowsRebar.cs
- filewebresponse.cs
- Expander.cs
- DocumentViewer.cs
- HMACSHA512.cs
- RegisteredDisposeScript.cs