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
- DefaultBinder.cs
- NavigationPropertyEmitter.cs
- EncryptedType.cs
- Graphics.cs
- XmlHierarchicalEnumerable.cs
- TextElementEnumerator.cs
- PageParserFilter.cs
- FixedTextSelectionProcessor.cs
- Trigger.cs
- MdiWindowListItemConverter.cs
- XmlElementAttribute.cs
- ResourceManagerWrapper.cs
- ParallelActivityDesigner.cs
- Trace.cs
- HttpBindingExtension.cs
- SendActivityEventArgs.cs
- ContentType.cs
- ComponentResourceKey.cs
- ByteStack.cs
- WindowExtensionMethods.cs
- VerificationAttribute.cs
- FrameworkPropertyMetadata.cs
- ChangePassword.cs
- ConfigXmlSignificantWhitespace.cs
- DXD.cs
- RtType.cs
- RowToFieldTransformer.cs
- ClientSettingsSection.cs
- XmlSchemaAnyAttribute.cs
- DateTimeSerializationSection.cs
- ApplicationInfo.cs
- EditorBrowsableAttribute.cs
- SymDocumentType.cs
- TextRenderingModeValidation.cs
- DataSourceBooleanViewSchemaConverter.cs
- ExpandCollapseProviderWrapper.cs
- MutableAssemblyCacheEntry.cs
- EntityProviderServices.cs
- GregorianCalendarHelper.cs
- TimelineClockCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- ConsoleTraceListener.cs
- AssertFilter.cs
- LockCookie.cs
- dsa.cs
- HwndHost.cs
- GenericAuthenticationEventArgs.cs
- ColumnHeader.cs
- VirtualPathProvider.cs
- WindowsGrip.cs
- OracleParameter.cs
- ContextMenuAutomationPeer.cs
- HtmlImage.cs
- OleDbException.cs
- Floater.cs
- ParameterElement.cs
- Int32CAMarshaler.cs
- ExpressionBinding.cs
- BindingListCollectionView.cs
- WindowsToolbar.cs
- ConnectionsZoneDesigner.cs
- LayoutEngine.cs
- ExtenderProviderService.cs
- APCustomTypeDescriptor.cs
- TagNameToTypeMapper.cs
- DataTableMappingCollection.cs
- RegexCaptureCollection.cs
- WindowsIdentity.cs
- StateItem.cs
- UpDownBase.cs
- FreezableOperations.cs
- TreeNodeCollection.cs
- EmptyEnumerator.cs
- FloatUtil.cs
- cookie.cs
- VoiceObjectToken.cs
- Timer.cs
- BasicCommandTreeVisitor.cs
- PeerMessageDispatcher.cs
- RectKeyFrameCollection.cs
- OleDbEnumerator.cs
- CanExpandCollapseAllConverter.cs
- CompositionTarget.cs
- CatalogZone.cs
- Dispatcher.cs
- XomlCompilerParameters.cs
- CatalogPartDesigner.cs
- XmlHierarchyData.cs
- XmlnsPrefixAttribute.cs
- SqlRecordBuffer.cs
- HttpRuntimeSection.cs
- SqlBooleanizer.cs
- RawStylusInputCustomData.cs
- ReadOnlyTernaryTree.cs
- Hashtable.cs
- StyleBamlRecordReader.cs
- HwndPanningFeedback.cs
- ExpressionEditorSheet.cs
- ProcessThreadCollection.cs
- MenuEventArgs.cs