Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LinqExpressionNormalizer.cs
- NativeObjectSecurity.cs
- HtmlTableCellCollection.cs
- StringBlob.cs
- XmlSchemaAll.cs
- DataGridViewRowsRemovedEventArgs.cs
- XmlConvert.cs
- HtmlForm.cs
- TypeGeneratedEventArgs.cs
- AmbiguousMatchException.cs
- SafeFileMappingHandle.cs
- Deflater.cs
- FormParameter.cs
- SerializationInfoEnumerator.cs
- SimpleFieldTemplateUserControl.cs
- TextContainer.cs
- Size3DValueSerializer.cs
- HttpConfigurationContext.cs
- Ticks.cs
- VariableModifiersHelper.cs
- ThemeDirectoryCompiler.cs
- SpellerStatusTable.cs
- ISCIIEncoding.cs
- WebResponse.cs
- ComplexObject.cs
- _SpnDictionary.cs
- TypeLibConverter.cs
- PointConverter.cs
- ChtmlMobileTextWriter.cs
- TableDetailsRow.cs
- XNodeNavigator.cs
- SeverityFilter.cs
- CompilerScope.Storage.cs
- Main.cs
- CaseCqlBlock.cs
- ElementProxy.cs
- DataReceivedEventArgs.cs
- SmtpAuthenticationManager.cs
- MSAAEventDispatcher.cs
- EmbeddedMailObjectsCollection.cs
- ImageFormatConverter.cs
- EntitySetDataBindingList.cs
- FontWeight.cs
- TypeElement.cs
- DeleteMemberBinder.cs
- DependencyPropertyHelper.cs
- Int16Storage.cs
- WebPartMenu.cs
- LoaderAllocator.cs
- EventBuilder.cs
- KeyMatchBuilder.cs
- GuidConverter.cs
- HtmlInputPassword.cs
- ByteKeyFrameCollection.cs
- DoubleKeyFrameCollection.cs
- DoubleAnimationBase.cs
- DeferredRunTextReference.cs
- FaultImportOptions.cs
- CookieParameter.cs
- HttpResponse.cs
- WindowsEditBoxRange.cs
- SettingsSection.cs
- TreeViewHitTestInfo.cs
- RecipientInfo.cs
- DelegateHelpers.Generated.cs
- QilXmlReader.cs
- StrokeCollection.cs
- SafeFileMappingHandle.cs
- DocumentPageHost.cs
- UnsafeNetInfoNativeMethods.cs
- SourceSwitch.cs
- CaseInsensitiveHashCodeProvider.cs
- JavaScriptString.cs
- SqlDataReaderSmi.cs
- UserControlCodeDomTreeGenerator.cs
- EditorZoneBase.cs
- MsmqIntegrationSecurity.cs
- Literal.cs
- TrackingStringDictionary.cs
- SatelliteContractVersionAttribute.cs
- ChannelManager.cs
- SerializationObjectManager.cs
- Accessors.cs
- QuotedPrintableStream.cs
- Cursors.cs
- XPathConvert.cs
- DesignRelationCollection.cs
- Parser.cs
- Soap.cs
- ToolStripItemClickedEventArgs.cs
- TextFormatterImp.cs
- StrongNameIdentityPermission.cs
- ZoomPercentageConverter.cs
- MLangCodePageEncoding.cs
- DataGridHyperlinkColumn.cs
- ByteAnimationUsingKeyFrames.cs
- ActiveXHost.cs
- DragCompletedEventArgs.cs
- InstanceCollisionException.cs
- MetadataCache.cs