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
- CellLabel.cs
- HandleCollector.cs
- bidPrivateBase.cs
- PathFigure.cs
- DLinqColumnProvider.cs
- XmlCodeExporter.cs
- Material.cs
- ASCIIEncoding.cs
- ParameterCollectionEditor.cs
- UserUseLicenseDictionaryLoader.cs
- TokenFactoryBase.cs
- DocumentOrderComparer.cs
- GeneralTransform3D.cs
- SymbolResolver.cs
- ValueTable.cs
- ResourceDefaultValueAttribute.cs
- CutCopyPasteHelper.cs
- COSERVERINFO.cs
- ClientSettingsProvider.cs
- PointHitTestResult.cs
- EventProviderWriter.cs
- SqlCacheDependencySection.cs
- XmlSchemaNotation.cs
- BroadcastEventHelper.cs
- ProcessModelInfo.cs
- BitArray.cs
- ObjectReaderCompiler.cs
- CustomTypeDescriptor.cs
- UnsafeNativeMethods.cs
- ProfilePropertyMetadata.cs
- AnnouncementEndpointElement.cs
- ProcessThreadCollection.cs
- AnnotationResourceCollection.cs
- CommandEventArgs.cs
- CheckPair.cs
- RequestQueryProcessor.cs
- DeferredTextReference.cs
- DataSvcMapFileSerializer.cs
- QueryCacheEntry.cs
- objectresult_tresulttype.cs
- SafeRightsManagementQueryHandle.cs
- SafeUserTokenHandle.cs
- Constraint.cs
- HelpKeywordAttribute.cs
- SqlDependencyUtils.cs
- CodeNamespaceCollection.cs
- TableLayoutPanelBehavior.cs
- WebPartConnectionsConfigureVerb.cs
- SystemIPInterfaceProperties.cs
- XmlTextEncoder.cs
- ToolStripSeparator.cs
- Restrictions.cs
- QilName.cs
- FatalException.cs
- FormParameter.cs
- CngKey.cs
- FontNameConverter.cs
- XhtmlBasicPhoneCallAdapter.cs
- TextRunCache.cs
- Message.cs
- CookieParameter.cs
- OdbcConnectionStringbuilder.cs
- NetPipeSection.cs
- CompilerError.cs
- WindowsFormsSynchronizationContext.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TextServicesCompartmentContext.cs
- IResourceProvider.cs
- DataGridColumn.cs
- GradientSpreadMethodValidation.cs
- DataGridParentRows.cs
- CodeSubDirectory.cs
- TableRow.cs
- Boolean.cs
- PropertyEntry.cs
- Win32.cs
- EndPoint.cs
- CellParagraph.cs
- NotifyParentPropertyAttribute.cs
- WebServiceReceiveDesigner.cs
- NetworkInformationPermission.cs
- ZipIOLocalFileBlock.cs
- ConsoleKeyInfo.cs
- DataKey.cs
- ExeConfigurationFileMap.cs
- CellParaClient.cs
- ReflectionHelper.cs
- SemanticResultValue.cs
- ToolZone.cs
- Bidi.cs
- HitTestParameters.cs
- ProviderSettingsCollection.cs
- TextServicesCompartment.cs
- WorkflowInstanceExtensionManager.cs
- RequestStatusBarUpdateEventArgs.cs
- RowType.cs
- CustomAttributeFormatException.cs
- EncryptionUtility.cs
- SqlColumnizer.cs
- PolicyDesigner.cs