Code:
/ DotNET / DotNET / 8.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
- OdbcCommandBuilder.cs
- InputProcessorProfiles.cs
- SqlStream.cs
- iisPickupDirectory.cs
- GroupItemAutomationPeer.cs
- SafeSystemMetrics.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ReliabilityContractAttribute.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- Pen.cs
- Point3D.cs
- TransformerInfo.cs
- CompilerResults.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DataControlImageButton.cs
- PageThemeParser.cs
- EntityClientCacheKey.cs
- FontCacheUtil.cs
- RotateTransform3D.cs
- SafeThreadHandle.cs
- XamlSerializerUtil.cs
- SuppressMessageAttribute.cs
- TableLayoutPanelCellPosition.cs
- TemplateBindingExpression.cs
- XmlFileEditor.cs
- SpecularMaterial.cs
- MemberRelationshipService.cs
- UnSafeCharBuffer.cs
- ConfigXmlCDataSection.cs
- DesignSurface.cs
- ColorMap.cs
- Simplifier.cs
- KnownBoxes.cs
- ItemMap.cs
- Queue.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- BaseTemplateBuildProvider.cs
- FrameworkContentElement.cs
- SmuggledIUnknown.cs
- ToolboxCategoryItems.cs
- CorruptStoreException.cs
- InheritedPropertyChangedEventArgs.cs
- XmlNavigatorStack.cs
- AppSecurityManager.cs
- Clock.cs
- QueryOutputWriterV1.cs
- ProcessHostServerConfig.cs
- ButtonBase.cs
- ObjectDataSourceDisposingEventArgs.cs
- AsyncContentLoadedEventArgs.cs
- wmiprovider.cs
- ItemTypeToolStripMenuItem.cs
- Types.cs
- Point4D.cs
- SpoolingTask.cs
- LongValidator.cs
- InstanceHandleReference.cs
- ObjectSet.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ThreadStaticAttribute.cs
- RegexGroup.cs
- ProgramPublisher.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- MachineSettingsSection.cs
- ToRequest.cs
- XdrBuilder.cs
- WebRequestModuleElement.cs
- ZipIOBlockManager.cs
- TypeSystemHelpers.cs
- SystemBrushes.cs
- PingReply.cs
- TextBox.cs
- Types.cs
- AstNode.cs
- FileCodeGroup.cs
- WorkerRequest.cs
- ErrorsHelper.cs
- CodeFieldReferenceExpression.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- ControlAdapter.cs
- ParseChildrenAsPropertiesAttribute.cs
- Utils.cs
- BuildProvider.cs
- NamespaceListProperty.cs
- StructuredProperty.cs
- StructuralObject.cs
- IpcPort.cs
- DataGridRow.cs
- TableLayoutPanelCellPosition.cs
- ListenDesigner.cs
- FormatSettings.cs
- MetadataUtilsSmi.cs
- srgsitem.cs
- Monitor.cs
- ReaderOutput.cs
- ProviderCollection.cs
- AudioBase.cs
- SingleConverter.cs
- UrlMappingCollection.cs
- IMembershipProvider.cs