Code:
/ FX-1434 / FX-1434 / 1.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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QueryCacheEntry.cs
- DecoderExceptionFallback.cs
- XmlTypeAttribute.cs
- IFlowDocumentViewer.cs
- HttpModulesSection.cs
- HighlightVisual.cs
- UidPropertyAttribute.cs
- AssertFilter.cs
- FigureHelper.cs
- RouteItem.cs
- ControlCachePolicy.cs
- ComAdminInterfaces.cs
- SQLInt16.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- StreamResourceInfo.cs
- RowToFieldTransformer.cs
- XPathParser.cs
- WaitHandleCannotBeOpenedException.cs
- LineSegment.cs
- BStrWrapper.cs
- OLEDB_Util.cs
- DecoderBestFitFallback.cs
- HtmlInputPassword.cs
- ProgressBarAutomationPeer.cs
- BmpBitmapEncoder.cs
- RepeaterItem.cs
- SiteMapSection.cs
- RegexWorker.cs
- ControlPersister.cs
- StrongNameUtility.cs
- SHA384Managed.cs
- TrueReadOnlyCollection.cs
- StorageTypeMapping.cs
- ObjRef.cs
- ContainerVisual.cs
- ProfileServiceManager.cs
- MessageDesigner.cs
- ExpressionPrefixAttribute.cs
- Normalization.cs
- CompilerParameters.cs
- WizardStepBase.cs
- UserNamePasswordValidationMode.cs
- TraceXPathNavigator.cs
- ProvideValueServiceProvider.cs
- MsmqProcessProtocolHandler.cs
- TextAction.cs
- SingleObjectCollection.cs
- EntityContainerRelationshipSetEnd.cs
- TextBlockAutomationPeer.cs
- WebEventTraceProvider.cs
- TableProviderWrapper.cs
- DataBindingExpressionBuilder.cs
- documentsequencetextcontainer.cs
- BamlLocalizableResource.cs
- CompModSwitches.cs
- ReadOnlyDictionary.cs
- DesignerDataColumn.cs
- ScrollBarAutomationPeer.cs
- VersionPair.cs
- ImmutableClientRuntime.cs
- GridViewDeleteEventArgs.cs
- InteropBitmapSource.cs
- HtmlInputImage.cs
- NTAccount.cs
- RemoteWebConfigurationHostServer.cs
- AuthorizationRuleCollection.cs
- HtmlTable.cs
- LinqDataSourceEditData.cs
- DataRow.cs
- HebrewCalendar.cs
- DataGridViewCheckBoxCell.cs
- StateRuntime.cs
- OleCmdHelper.cs
- HashHelpers.cs
- WebBrowserBase.cs
- EdgeProfileValidation.cs
- ServiceTimeoutsElement.cs
- DataGridViewElement.cs
- XmlExtensionFunction.cs
- TextTreeNode.cs
- InheritablePropertyChangeInfo.cs
- Publisher.cs
- CacheChildrenQuery.cs
- ChangePassword.cs
- SiblingIterators.cs
- HttpCookie.cs
- Win32MouseDevice.cs
- CommonGetThemePartSize.cs
- MultiPartWriter.cs
- TraceSection.cs
- DataIdProcessor.cs
- SingleTagSectionHandler.cs
- SizeValueSerializer.cs
- RuntimeConfig.cs
- Cursor.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- TypeUsageBuilder.cs
- WebPartsSection.cs
- TypeUsage.cs
- CollectionViewSource.cs