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
- TextRenderer.cs
- remotingproxy.cs
- StyleCollectionEditor.cs
- SortQuery.cs
- WindowsSlider.cs
- XmlCharType.cs
- Helper.cs
- SectionInformation.cs
- XmlUTF8TextWriter.cs
- Base64WriteStateInfo.cs
- MeshGeometry3D.cs
- ButtonFlatAdapter.cs
- LiteralControl.cs
- MouseEvent.cs
- LogWriteRestartAreaState.cs
- AccessibilityHelperForXpWin2k3.cs
- SemanticResolver.cs
- invalidudtexception.cs
- XmlSchemaRedefine.cs
- DataGridViewCheckBoxCell.cs
- SwitchElementsCollection.cs
- ThreadStateException.cs
- RightsManagementInformation.cs
- _ListenerRequestStream.cs
- ListBindableAttribute.cs
- MergePropertyDescriptor.cs
- PartialCachingControl.cs
- XamlRtfConverter.cs
- HttpCachePolicyElement.cs
- _NTAuthentication.cs
- StringToken.cs
- PathFigureCollectionValueSerializer.cs
- ReflectionTypeLoadException.cs
- StreamSecurityUpgradeInitiator.cs
- DynamicResourceExtension.cs
- MediaElementAutomationPeer.cs
- Profiler.cs
- __TransparentProxy.cs
- XPathDocumentNavigator.cs
- XComponentModel.cs
- GroupJoinQueryOperator.cs
- PathTooLongException.cs
- ObjectListField.cs
- Zone.cs
- AddInServer.cs
- ItemType.cs
- SmtpNetworkElement.cs
- XPathNodeInfoAtom.cs
- Pkcs9Attribute.cs
- FunctionDetailsReader.cs
- EventLogSession.cs
- DateTimeStorage.cs
- ResourceProviderFactory.cs
- ContractTypeNameElement.cs
- ExpressionSelection.cs
- TreeNodeConverter.cs
- XmlDictionary.cs
- Transactions.cs
- BaseDataBoundControl.cs
- BitmapFrameEncode.cs
- TrustLevel.cs
- XmlWriter.cs
- DataGridViewCheckBoxColumn.cs
- TextBox.cs
- AppDomainUnloadedException.cs
- Constant.cs
- TextDecorationCollectionConverter.cs
- SafeNativeMethods.cs
- TripleDES.cs
- DataGridViewRowPostPaintEventArgs.cs
- IndentTextWriter.cs
- DefinitionUpdate.cs
- ListBindingHelper.cs
- EndpointDiscoveryMetadataCD1.cs
- ClientFormsAuthenticationCredentials.cs
- WindowsToolbarItemAsMenuItem.cs
- XhtmlBasicLiteralTextAdapter.cs
- CodeConstructor.cs
- GetWinFXPath.cs
- StartUpEventArgs.cs
- TextInfo.cs
- RoleManagerSection.cs
- NamespaceQuery.cs
- ClusterSafeNativeMethods.cs
- PropertyNames.cs
- EntityDataSourceContainerNameItem.cs
- ClientSession.cs
- InkPresenter.cs
- DataGridViewButtonColumn.cs
- EncoderBestFitFallback.cs
- Permission.cs
- XamlDesignerSerializationManager.cs
- XmlIgnoreAttribute.cs
- MeasurementDCInfo.cs
- DecimalAnimation.cs
- ExternalCalls.cs
- _CookieModule.cs
- DefaultAsyncDataDispatcher.cs
- PartBasedPackageProperties.cs
- TCPClient.cs