Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DrawingCollection.cs
- EntityProxyFactory.cs
- View.cs
- FrameworkReadOnlyPropertyMetadata.cs
- LoginUtil.cs
- CacheDependency.cs
- ColumnHeaderConverter.cs
- InvalidOperationException.cs
- Win32SafeHandles.cs
- SoapEnvelopeProcessingElement.cs
- WizardPanelChangingEventArgs.cs
- ContourSegment.cs
- AliasExpr.cs
- EntityViewGenerationConstants.cs
- Attributes.cs
- BulletedListEventArgs.cs
- MDIControlStrip.cs
- DrawingContextWalker.cs
- TextEndOfLine.cs
- StaticContext.cs
- SerializerDescriptor.cs
- SqlDataSourceQuery.cs
- TextTreeInsertUndoUnit.cs
- _CacheStreams.cs
- Parallel.cs
- TextElementEnumerator.cs
- BamlBinaryWriter.cs
- CookieParameter.cs
- DBSqlParserTable.cs
- SrgsRulesCollection.cs
- Pen.cs
- coordinatorfactory.cs
- HotSpotCollectionEditor.cs
- ObjectTypeMapping.cs
- DbSetClause.cs
- SmiConnection.cs
- SpellerHighlightLayer.cs
- Stream.cs
- Stackframe.cs
- PointAnimation.cs
- EventMappingSettings.cs
- TargetException.cs
- SafeEventLogReadHandle.cs
- WindowsPrincipal.cs
- securestring.cs
- DiscoveryClientDuplexChannel.cs
- DocumentViewerHelper.cs
- BoundField.cs
- SoapCodeExporter.cs
- ListViewCommandEventArgs.cs
- TypefaceMetricsCache.cs
- RotateTransform.cs
- VisualStyleTypesAndProperties.cs
- DataBinder.cs
- TreeIterator.cs
- Aes.cs
- HwndSourceParameters.cs
- CompiledQuery.cs
- WebBrowserSiteBase.cs
- DispatcherFrame.cs
- CompositeFontInfo.cs
- ToolStripProgressBar.cs
- Command.cs
- WindowsScrollBar.cs
- MdImport.cs
- MsmqNonTransactedPoisonHandler.cs
- PartialList.cs
- FormatterServices.cs
- DataGridViewButtonColumn.cs
- BitmapCacheBrush.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- PropertyItemInternal.cs
- CompilerGlobalScopeAttribute.cs
- XmlName.cs
- WsdlBuildProvider.cs
- ServiceProviders.cs
- XmlCompatibilityReader.cs
- XPathNode.cs
- TimeSpanMinutesConverter.cs
- EncoderFallback.cs
- SaveFileDialog.cs
- Classification.cs
- XmlILCommand.cs
- RelationshipWrapper.cs
- CollectionChangedEventManager.cs
- TabItem.cs
- RegexCompiler.cs
- DataGridCommandEventArgs.cs
- TraceHwndHost.cs
- Helpers.cs
- ToolStripStatusLabel.cs
- VideoDrawing.cs
- RequestBringIntoViewEventArgs.cs
- WebRequestModulesSection.cs
- LedgerEntryCollection.cs
- _BaseOverlappedAsyncResult.cs
- cookie.cs
- DetailsViewPagerRow.cs
- Menu.cs
- ProfileParameter.cs