Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- References.cs
- LocalizableAttribute.cs
- ReachDocumentPageSerializerAsync.cs
- ViewValidator.cs
- AuthenticationModuleElementCollection.cs
- Translator.cs
- ContainerVisual.cs
- InputMethodStateTypeInfo.cs
- FacetEnabledSchemaElement.cs
- ToolStripDropDownClosedEventArgs.cs
- FamilyMapCollection.cs
- ZipIOLocalFileDataDescriptor.cs
- StylusDevice.cs
- ProfileEventArgs.cs
- VisualProxy.cs
- ListenerSessionConnectionReader.cs
- DataGridState.cs
- SamlAuthenticationStatement.cs
- X509Certificate2Collection.cs
- RequestCacheValidator.cs
- ServiceProviders.cs
- HttpConfigurationContext.cs
- PrintPreviewGraphics.cs
- SystemIPInterfaceStatistics.cs
- UnsafeNativeMethodsMilCoreApi.cs
- input.cs
- StringValueConverter.cs
- WebPartsSection.cs
- ClientRolePrincipal.cs
- DataSpaceManager.cs
- KeyValuePair.cs
- EndpointNameMessageFilter.cs
- MarkupWriter.cs
- EUCJPEncoding.cs
- EdmEntityTypeAttribute.cs
- CounterCreationDataConverter.cs
- TraceData.cs
- SendMailErrorEventArgs.cs
- PackWebResponse.cs
- XmlValidatingReader.cs
- SystemNetworkInterface.cs
- GeneralTransform3DTo2D.cs
- DeferredElementTreeState.cs
- ObjectContext.cs
- InstanceOwnerException.cs
- BinaryObjectWriter.cs
- DetailsViewInsertEventArgs.cs
- ExceptionRoutedEventArgs.cs
- WebPartTransformerAttribute.cs
- CapabilitiesPattern.cs
- LinearGradientBrush.cs
- ManipulationDevice.cs
- Logging.cs
- InstallerTypeAttribute.cs
- DeflateStreamAsyncResult.cs
- FixedLineResult.cs
- ZipIOLocalFileDataDescriptor.cs
- PropertyReferenceSerializer.cs
- ListViewTableCell.cs
- UnsafeNetInfoNativeMethods.cs
- IImplicitResourceProvider.cs
- XmlUTF8TextReader.cs
- RemotingAttributes.cs
- FreezableCollection.cs
- DescendentsWalkerBase.cs
- BeginEvent.cs
- Triplet.cs
- SplitterCancelEvent.cs
- Vector3D.cs
- SingleObjectCollection.cs
- _Win32.cs
- SqlTypeConverter.cs
- RemotingServices.cs
- HttpRuntime.cs
- SafeMILHandle.cs
- HttpListener.cs
- XMLSchema.cs
- DataGridBeginningEditEventArgs.cs
- PartEditor.cs
- LogicalMethodInfo.cs
- ObjectDataSourceMethodEventArgs.cs
- EdmValidator.cs
- ContextBase.cs
- XmlWriterSettings.cs
- PackagingUtilities.cs
- SmiGettersStream.cs
- FontConverter.cs
- UnsafeNetInfoNativeMethods.cs
- TextSelectionHighlightLayer.cs
- NetTcpSecurityElement.cs
- BitmapEffectGroup.cs
- XPathSelectionIterator.cs
- TableDetailsCollection.cs
- Random.cs
- SchemaCompiler.cs
- RotationValidation.cs
- DbConnectionPoolGroup.cs
- DefaultValueConverter.cs
- MetadataWorkspace.cs
- InputBindingCollection.cs