Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IO / DirectoryNotFoundException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- HtmlInputImage.cs
- HttpModuleCollection.cs
- CompiledRegexRunnerFactory.cs
- MethodInfo.cs
- ChangeInterceptorAttribute.cs
- XmlBinaryReader.cs
- Stream.cs
- PermissionSet.cs
- Update.cs
- MarkerProperties.cs
- PenLineCapValidation.cs
- EntityDataSourceUtil.cs
- WindowInteractionStateTracker.cs
- QuotedPrintableStream.cs
- DataGridParentRows.cs
- ObservableCollection.cs
- UnknownWrapper.cs
- TabItem.cs
- FileChangesMonitor.cs
- SafeLocalMemHandle.cs
- DbMetaDataColumnNames.cs
- QuaternionAnimationBase.cs
- Application.cs
- Helper.cs
- DataControlFieldCollection.cs
- FrameworkPropertyMetadata.cs
- StylusPointPropertyId.cs
- MenuRenderer.cs
- DataControlPagerLinkButton.cs
- __ComObject.cs
- DocumentEventArgs.cs
- SQLChars.cs
- OdbcTransaction.cs
- Int32Rect.cs
- InternalConfigSettingsFactory.cs
- CheckBoxAutomationPeer.cs
- ExceptionUtil.cs
- DesigntimeLicenseContext.cs
- BeginCreateSecurityTokenRequest.cs
- _BaseOverlappedAsyncResult.cs
- NativeMethodsOther.cs
- ProgressBarAutomationPeer.cs
- FileSystemEnumerable.cs
- SelectedPathEditor.cs
- CharacterString.cs
- BatchParser.cs
- SqlConnectionFactory.cs
- PkcsMisc.cs
- TextStore.cs
- StoryFragments.cs
- ControlCachePolicy.cs
- DbMetaDataColumnNames.cs
- WebServiceHost.cs
- TypeLoadException.cs
- DockAndAnchorLayout.cs
- SignatureDescription.cs
- XmlnsCache.cs
- cookie.cs
- FactoryId.cs
- XslNumber.cs
- ScriptReference.cs
- MouseActionConverter.cs
- SaveFileDialog.cs
- RichTextBox.cs
- DeviceOverridableAttribute.cs
- DesignerToolboxInfo.cs
- WebBrowserProgressChangedEventHandler.cs
- _AuthenticationState.cs
- XPathNodeIterator.cs
- CorrelationResolver.cs
- TrackingProfileCache.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- xmlglyphRunInfo.cs
- ContourSegment.cs
- EventNotify.cs
- DockingAttribute.cs
- DateTimeParse.cs
- DataGridViewRowsAddedEventArgs.cs
- StorageTypeMapping.cs
- VectorConverter.cs
- AttachmentCollection.cs
- FindSimilarActivitiesVerb.cs
- XmlSchemaObjectTable.cs
- DataTableNameHandler.cs
- SEHException.cs
- PlatformNotSupportedException.cs
- OleDbTransaction.cs
- DynamicRouteExpression.cs
- Lease.cs
- AtomServiceDocumentSerializer.cs
- HwndTarget.cs
- ResizeBehavior.cs
- WebPartMenuStyle.cs
- TokenBasedSet.cs
- CodeThrowExceptionStatement.cs
- DiscoveryDocument.cs
- XmlWellformedWriter.cs
- TraceProvider.cs
- XPathDocumentIterator.cs
- SystemColors.cs