Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IO / DirectoryNotFoundException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- DisplayMemberTemplateSelector.cs
- VirtualStackFrame.cs
- KeyValueConfigurationCollection.cs
- OverrideMode.cs
- AsyncOperationManager.cs
- InvalidWMPVersionException.cs
- SortExpressionBuilder.cs
- WebPartDescription.cs
- SqlHelper.cs
- WebConfigurationManager.cs
- templategroup.cs
- FrameSecurityDescriptor.cs
- ContentFilePart.cs
- AnimationTimeline.cs
- URIFormatException.cs
- DataListGeneralPage.cs
- GZipUtils.cs
- SecurityDescriptor.cs
- GenerateTemporaryTargetAssembly.cs
- TCPListener.cs
- ReflectionTypeLoadException.cs
- SqlRowUpdatingEvent.cs
- LineGeometry.cs
- Int16.cs
- XmlMembersMapping.cs
- ColumnPropertiesGroup.cs
- DeclaredTypeElementCollection.cs
- SqlProviderManifest.cs
- SQLChars.cs
- DoubleConverter.cs
- LineServicesCallbacks.cs
- METAHEADER.cs
- RenderDataDrawingContext.cs
- DbConnectionFactory.cs
- sqlstateclientmanager.cs
- DbQueryCommandTree.cs
- WindowsFormsHost.cs
- RTTypeWrapper.cs
- SQLInt16Storage.cs
- CurrencyWrapper.cs
- SoapUnknownHeader.cs
- StreamResourceInfo.cs
- GlyphShapingProperties.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ProviderManager.cs
- ToolBarButton.cs
- NavigationWindow.cs
- RequestTimeoutManager.cs
- DbConnectionHelper.cs
- TableRowCollection.cs
- WebPartTransformerAttribute.cs
- WMIInterop.cs
- ResumeStoryboard.cs
- SvcMapFileSerializer.cs
- RoamingStoreFileUtility.cs
- SeverityFilter.cs
- BorderGapMaskConverter.cs
- WindowsNonControl.cs
- EFTableProvider.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- Screen.cs
- DictionarySurrogate.cs
- CompoundFileReference.cs
- MenuAutomationPeer.cs
- DataList.cs
- SiteOfOriginContainer.cs
- ExpressionConverter.cs
- SimpleType.cs
- TextDecorations.cs
- MsmqIntegrationOutputChannel.cs
- PackageFilter.cs
- CodeMemberField.cs
- PolyBezierSegment.cs
- ExpressionBindingCollection.cs
- DetailsViewDeleteEventArgs.cs
- WindowsFormsHelpers.cs
- CodeLinePragma.cs
- FrameworkTextComposition.cs
- ProxyGenerationError.cs
- XmlRawWriter.cs
- ToolStripContainerActionList.cs
- TextFormatterContext.cs
- StackOverflowException.cs
- Trigger.cs
- IndicFontClient.cs
- PropertyNames.cs
- BitConverter.cs
- login.cs
- EventLogRecord.cs
- SQLBoolean.cs
- xmlglyphRunInfo.cs
- XmlSchemaException.cs
- SafeNativeMethodsMilCoreApi.cs
- WrappedReader.cs
- TraceSource.cs
- PEFileReader.cs
- MemberHolder.cs
- X509SecurityTokenProvider.cs
- AddingNewEventArgs.cs
- SignedInfo.cs