Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DBDataPermission.cs
- OleDbDataReader.cs
- HebrewNumber.cs
- DataGridViewAutoSizeModeEventArgs.cs
- contentDescriptor.cs
- CompiledQuery.cs
- SwitchAttribute.cs
- SystemDiagnosticsSection.cs
- _IPv4Address.cs
- GetPolicyDetailsRequest.cs
- ConfigurationValues.cs
- Oci.cs
- WhitespaceRuleLookup.cs
- InteropBitmapSource.cs
- MultiAsyncResult.cs
- BinaryObjectInfo.cs
- DocumentViewerAutomationPeer.cs
- Vector3DIndependentAnimationStorage.cs
- Timer.cs
- DecoderReplacementFallback.cs
- FileDialog.cs
- GrammarBuilder.cs
- FormDesigner.cs
- SiteIdentityPermission.cs
- BaseAppDomainProtocolHandler.cs
- Italic.cs
- RenderDataDrawingContext.cs
- RegexCode.cs
- DetailsViewPageEventArgs.cs
- HostProtectionException.cs
- WebPartEventArgs.cs
- Missing.cs
- HttpRequestWrapper.cs
- InteropAutomationProvider.cs
- HiddenField.cs
- RegexTree.cs
- AccessText.cs
- SqlUdtInfo.cs
- StructuralObject.cs
- CodeComment.cs
- XmlTextReaderImpl.cs
- BaseDataList.cs
- SecondaryIndexDefinition.cs
- ServiceDesigner.xaml.cs
- RightsManagementResourceHelper.cs
- RoutedCommand.cs
- UnsafeNativeMethods.cs
- TableLayoutStyleCollection.cs
- DocobjHost.cs
- TextEditorTables.cs
- ObjectNotFoundException.cs
- OdbcUtils.cs
- OutputCacheModule.cs
- AnnotationStore.cs
- RemoteWebConfigurationHostServer.cs
- ExpandCollapsePattern.cs
- ExceptionValidationRule.cs
- IPEndPoint.cs
- WhiteSpaceTrimStringConverter.cs
- BrowserCapabilitiesCompiler.cs
- ContentAlignmentEditor.cs
- FileDetails.cs
- StringAnimationUsingKeyFrames.cs
- WorkflowDebuggerSteppingAttribute.cs
- Visual3DCollection.cs
- XmlBoundElement.cs
- SecurityElement.cs
- DateTimeFormat.cs
- Journaling.cs
- RectValueSerializer.cs
- RemotingSurrogateSelector.cs
- EventProviderTraceListener.cs
- Camera.cs
- SqlCacheDependencyDatabase.cs
- SoapCodeExporter.cs
- SymLanguageType.cs
- DetailsViewModeEventArgs.cs
- StandardCommands.cs
- CompressStream.cs
- Schema.cs
- CollectionChangedEventManager.cs
- Quad.cs
- ActivityXRefPropertyEditor.cs
- FixedDSBuilder.cs
- ConfigurationSettings.cs
- NavigationProperty.cs
- XmlQuerySequence.cs
- Padding.cs
- ConnectionOrientedTransportElement.cs
- xmlfixedPageInfo.cs
- __TransparentProxy.cs
- InternalConfigHost.cs
- DataSourceHelper.cs
- FlowPosition.cs
- WebDescriptionAttribute.cs
- BoundColumn.cs
- IPEndPoint.cs
- SqlUDTStorage.cs
- Span.cs
- SchemaLookupTable.cs