Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HtmlInputCheckBox.cs
- SqlConnection.cs
- XmlComment.cs
- FontFamilyValueSerializer.cs
- XdrBuilder.cs
- ApplicationSettingsBase.cs
- RemotingException.cs
- FrameSecurityDescriptor.cs
- WebPartAddingEventArgs.cs
- ContentElement.cs
- PropertyPathConverter.cs
- FileDialogPermission.cs
- ToolStripCodeDomSerializer.cs
- UnorderedHashRepartitionStream.cs
- AssertSection.cs
- DiffuseMaterial.cs
- XamlStackWriter.cs
- MetaModel.cs
- EventSourceCreationData.cs
- TextLine.cs
- Vertex.cs
- Cloud.cs
- Int16AnimationUsingKeyFrames.cs
- HttpModuleAction.cs
- userdatakeys.cs
- Attributes.cs
- TextDecorationLocationValidation.cs
- InputMethodStateChangeEventArgs.cs
- Char.cs
- WebConfigurationHost.cs
- ListControlConvertEventArgs.cs
- SecondaryIndexList.cs
- MiniModule.cs
- RightsController.cs
- QueryStringParameter.cs
- FormViewPageEventArgs.cs
- NavigationWindow.cs
- InvalidTimeZoneException.cs
- XmlElementAttributes.cs
- PolyQuadraticBezierSegment.cs
- AccessControlEntry.cs
- DocumentOrderQuery.cs
- QilTargetType.cs
- CaseCqlBlock.cs
- Vector.cs
- BamlWriter.cs
- odbcmetadatafactory.cs
- EditorPartCollection.cs
- QuotedStringFormatReader.cs
- EnumCodeDomSerializer.cs
- TextTreeRootNode.cs
- _AutoWebProxyScriptWrapper.cs
- MetadataElement.cs
- ProxyHelper.cs
- NamedPipeTransportBindingElement.cs
- ColorMatrix.cs
- Assert.cs
- ProcessModelInfo.cs
- ProgressBar.cs
- SByte.cs
- RijndaelCryptoServiceProvider.cs
- Material.cs
- EntityObject.cs
- JoinElimination.cs
- CommandLibraryHelper.cs
- Page.cs
- FullTrustAssembly.cs
- ComboBoxItem.cs
- Compilation.cs
- SafeEventLogReadHandle.cs
- InputDevice.cs
- XmlILOptimizerVisitor.cs
- MatrixUtil.cs
- Lazy.cs
- SEHException.cs
- SQLResource.cs
- HtmlProps.cs
- ProxyFragment.cs
- TableRowCollection.cs
- XmlSchemaSubstitutionGroup.cs
- SingleSelectRootGridEntry.cs
- WebPartVerb.cs
- ToolStripItemBehavior.cs
- HideDisabledControlAdapter.cs
- SystemThemeKey.cs
- XamlToRtfWriter.cs
- HttpRawResponse.cs
- TemplateNameScope.cs
- ResizeGrip.cs
- DivideByZeroException.cs
- ColorMatrix.cs
- CfgSemanticTag.cs
- WindowsEditBox.cs
- TimeSpanOrInfiniteConverter.cs
- PathTooLongException.cs
- UnionCqlBlock.cs
- HtmlHistory.cs
- UpdateManifestForBrowserApplication.cs
- CookieHandler.cs
- RSAPKCS1SignatureDeformatter.cs