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
- ItemCheckEvent.cs
- XmlEncoding.cs
- HttpCookiesSection.cs
- DocumentPageView.cs
- BitArray.cs
- DataSourceCacheDurationConverter.cs
- CellLabel.cs
- UInt16.cs
- SafeRightsManagementEnvironmentHandle.cs
- DataGridViewComboBoxEditingControl.cs
- Reference.cs
- SafeEventHandle.cs
- PngBitmapEncoder.cs
- LambdaCompiler.Address.cs
- Highlights.cs
- ServiceContractViewControl.cs
- Transform.cs
- DependencyPropertyChangedEventArgs.cs
- TdsParserHelperClasses.cs
- GridViewPageEventArgs.cs
- MsmqHostedTransportConfiguration.cs
- XamlVector3DCollectionSerializer.cs
- Setter.cs
- ReceiveParametersContent.cs
- NetMsmqSecurityMode.cs
- Cursors.cs
- CellPartitioner.cs
- CFStream.cs
- ImageFormatConverter.cs
- TimeStampChecker.cs
- XPathDocument.cs
- InternalsVisibleToAttribute.cs
- BuildProviderAppliesToAttribute.cs
- ListBindableAttribute.cs
- ListViewItem.cs
- Decoder.cs
- XPathExpr.cs
- SettingsPropertyWrongTypeException.cs
- ToolboxItemLoader.cs
- QueryActivatableWorkflowsCommand.cs
- ActivityIdHeader.cs
- DataSvcMapFile.cs
- BamlLocalizabilityResolver.cs
- SmiConnection.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- GroupBoxDesigner.cs
- ProvidePropertyAttribute.cs
- InvalidDataException.cs
- CodeExpressionCollection.cs
- DesignerCommandAdapter.cs
- TransactionScope.cs
- MULTI_QI.cs
- Filter.cs
- PreloadedPackages.cs
- MediaPlayer.cs
- FunctionImportMapping.cs
- MissingSatelliteAssemblyException.cs
- AmbientEnvironment.cs
- SplashScreen.cs
- RepeatButtonAutomationPeer.cs
- HasCopySemanticsAttribute.cs
- AutomationElementCollection.cs
- TargetConverter.cs
- SupportsEventValidationAttribute.cs
- _NestedSingleAsyncResult.cs
- Label.cs
- ReflectTypeDescriptionProvider.cs
- StandardCommands.cs
- ReplacementText.cs
- PrtTicket_Editor.cs
- LogStore.cs
- CustomErrorsSection.cs
- DataGridViewColumn.cs
- Metafile.cs
- PrintControllerWithStatusDialog.cs
- ForeignKeyConstraint.cs
- BitmapFrameDecode.cs
- XmlCountingReader.cs
- IgnoreSectionHandler.cs
- InvalidCastException.cs
- UpdatePanelControlTrigger.cs
- PixelFormat.cs
- TextRangeEditLists.cs
- RequestCacheEntry.cs
- DiscoveryServiceExtension.cs
- PersonalizationStateInfo.cs
- DoubleAnimationBase.cs
- XmlSchema.cs
- DiscreteKeyFrames.cs
- RemoteWebConfigurationHostStream.cs
- OperationCanceledException.cs
- PolygonHotSpot.cs
- ConstantSlot.cs
- CodeIdentifiers.cs
- TrustLevelCollection.cs
- ImageButton.cs
- EnvironmentPermission.cs
- PauseStoryboard.cs
- FontFamilyValueSerializer.cs
- ListBoxItemAutomationPeer.cs