Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CallbackHandler.cs
- ToolStripSeparator.cs
- EventListener.cs
- SqlDataSource.cs
- Char.cs
- OleDbParameterCollection.cs
- DocumentApplicationJournalEntryEventArgs.cs
- TextParagraphCache.cs
- EnumConverter.cs
- ToolBarOverflowPanel.cs
- TabItemAutomationPeer.cs
- Literal.cs
- xml.cs
- HttpAsyncResult.cs
- DbProviderFactory.cs
- ExpressionBuilder.cs
- Scene3D.cs
- CodeAttributeDeclaration.cs
- ObjectListTitleAttribute.cs
- PathGradientBrush.cs
- XmlSchemaAttribute.cs
- OracleString.cs
- DataGridViewBindingCompleteEventArgs.cs
- TextRangeEditLists.cs
- RemoteWebConfigurationHostServer.cs
- ToolBarButtonClickEvent.cs
- PinnedBufferMemoryStream.cs
- WorkflowMarkupSerializationException.cs
- Button.cs
- UrlMappingCollection.cs
- PeekCompletedEventArgs.cs
- RubberbandSelector.cs
- XmlMembersMapping.cs
- util.cs
- BuilderInfo.cs
- MenuItemStyleCollectionEditor.cs
- RemoteWebConfigurationHostStream.cs
- _PooledStream.cs
- MetabaseSettingsIis7.cs
- HttpRequestContext.cs
- XmlSerializerNamespaces.cs
- RefreshPropertiesAttribute.cs
- UriTemplateCompoundPathSegment.cs
- InitializationEventAttribute.cs
- PartialList.cs
- TypedTableHandler.cs
- Collection.cs
- WindowInteropHelper.cs
- CTreeGenerator.cs
- SelectionRange.cs
- ArcSegment.cs
- StandardToolWindows.cs
- GeometryHitTestParameters.cs
- ExpressionBindings.cs
- ClaimTypeElement.cs
- CodeTypeOfExpression.cs
- Facet.cs
- KerberosTokenFactoryCredential.cs
- MouseButtonEventArgs.cs
- PrinterResolution.cs
- SQLByteStorage.cs
- ToolboxDataAttribute.cs
- TextSchema.cs
- ProviderConnectionPoint.cs
- XmlDataProvider.cs
- PhysicalAddress.cs
- SafeTimerHandle.cs
- EventProviderWriter.cs
- CompModSwitches.cs
- MatrixCamera.cs
- WebPartUtil.cs
- SchemaCreator.cs
- QuinticEase.cs
- LazyLoadBehavior.cs
- XmlElement.cs
- SQLSingleStorage.cs
- SqlConnectionStringBuilder.cs
- RotateTransform3D.cs
- SqlCacheDependencyDatabase.cs
- CodeArrayCreateExpression.cs
- WinInet.cs
- FileChangesMonitor.cs
- StreamInfo.cs
- ListViewHitTestInfo.cs
- HttpProfileGroupBase.cs
- DependencyPropertyValueSerializer.cs
- EditorZone.cs
- DeploymentSectionCache.cs
- RtfControls.cs
- CategoryEditor.cs
- PathStreamGeometryContext.cs
- Variable.cs
- SecurityUtils.cs
- CounterCreationDataCollection.cs
- MarshalByRefObject.cs
- GridItemPatternIdentifiers.cs
- Vars.cs
- MultiTrigger.cs
- ProvidePropertyAttribute.cs
- DbParameterCollectionHelper.cs