Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrintSchema.cs
- ActivityDelegate.cs
- WasEndpointConfigContainer.cs
- ReaderOutput.cs
- streamingZipPartStream.cs
- ActivityWithResult.cs
- SqlBulkCopyColumnMappingCollection.cs
- PolicyVersionConverter.cs
- MimeWriter.cs
- SiteMapNode.cs
- TreeNodeCollection.cs
- ErrorFormatterPage.cs
- DbConnectionClosed.cs
- AppSecurityManager.cs
- MarkupObject.cs
- _AuthenticationState.cs
- LOSFormatter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- FormatSettings.cs
- HtmlElementErrorEventArgs.cs
- ObjectParameter.cs
- CoTaskMemHandle.cs
- UIServiceHelper.cs
- SystemInfo.cs
- FlowPosition.cs
- precedingsibling.cs
- WinHttpWebProxyFinder.cs
- CompressEmulationStream.cs
- RightNameExpirationInfoPair.cs
- ThreadAbortException.cs
- TranslateTransform3D.cs
- RuleSetBrowserDialog.cs
- StackOverflowException.cs
- InternalsVisibleToAttribute.cs
- List.cs
- ReferenceService.cs
- GetPageCompletedEventArgs.cs
- LoginViewDesigner.cs
- RuleConditionDialog.cs
- ContentHostHelper.cs
- Pen.cs
- FastPropertyAccessor.cs
- SmuggledIUnknown.cs
- PrimarySelectionGlyph.cs
- EntityParameterCollection.cs
- ScrollChrome.cs
- UDPClient.cs
- DeferredElementTreeState.cs
- EntityObject.cs
- ArcSegment.cs
- ReceiveDesigner.xaml.cs
- SqlReferenceCollection.cs
- HostedHttpRequestAsyncResult.cs
- Task.cs
- mongolianshape.cs
- ConsumerConnectionPoint.cs
- ConnectionManagementElementCollection.cs
- Bookmark.cs
- CalendarTable.cs
- SpecularMaterial.cs
- PropagatorResult.cs
- XmlSubtreeReader.cs
- ReachUIElementCollectionSerializer.cs
- SelectionProviderWrapper.cs
- HttpServerUtilityWrapper.cs
- ExpressionParser.cs
- RevocationPoint.cs
- WorkflowTerminatedException.cs
- DataGridViewEditingControlShowingEventArgs.cs
- _HTTPDateParse.cs
- SystemInfo.cs
- Scene3D.cs
- NavigationProperty.cs
- XmlUnspecifiedAttribute.cs
- HttpListenerContext.cs
- SamlNameIdentifierClaimResource.cs
- LOSFormatter.cs
- XPathArrayIterator.cs
- BamlRecordWriter.cs
- BoundField.cs
- ContainerTracking.cs
- AttachedPropertyBrowsableAttribute.cs
- WindowAutomationPeer.cs
- IntSecurity.cs
- DSASignatureDeformatter.cs
- SecurityElement.cs
- SecurityTokenResolver.cs
- FullTextBreakpoint.cs
- GeometryValueSerializer.cs
- UnsafeNativeMethods.cs
- ReplacementText.cs
- filewebresponse.cs
- ProviderIncompatibleException.cs
- WebServiceFault.cs
- HtmlInputReset.cs
- InvalidDataContractException.cs
- NativeRightsManagementAPIsStructures.cs
- SafeEventLogWriteHandle.cs
- Menu.cs
- BaseProcessor.cs