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
- DynamicPhysicalDiscoSearcher.cs
- HttpBindingExtension.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- PathGradientBrush.cs
- SafeReversePInvokeHandle.cs
- XmlCodeExporter.cs
- Helpers.cs
- ResolveCriteria11.cs
- SmtpNegotiateAuthenticationModule.cs
- XmlEntityReference.cs
- ThemeableAttribute.cs
- ItemDragEvent.cs
- XmlElement.cs
- WebReferencesBuildProvider.cs
- ImageList.cs
- _Connection.cs
- ServiceModelSectionGroup.cs
- BamlResourceContent.cs
- DbDataRecord.cs
- Freezable.cs
- Deflater.cs
- QueryAccessibilityHelpEvent.cs
- XPathBinder.cs
- DataGridViewDataErrorEventArgs.cs
- FillErrorEventArgs.cs
- Rect3DConverter.cs
- DataGridViewImageCell.cs
- MatrixTransform3D.cs
- TopClause.cs
- SimpleApplicationHost.cs
- HttpApplicationFactory.cs
- ControlBuilderAttribute.cs
- Vector3DValueSerializer.cs
- TriggerActionCollection.cs
- ContextStack.cs
- Environment.cs
- InternalTransaction.cs
- AttributeUsageAttribute.cs
- StyleXamlParser.cs
- TaiwanCalendar.cs
- Symbol.cs
- GatewayIPAddressInformationCollection.cs
- BitHelper.cs
- Lease.cs
- DetailsViewPageEventArgs.cs
- AutomationTextAttribute.cs
- NativeMethods.cs
- TokenBasedSetEnumerator.cs
- TextRangeEditTables.cs
- HttpDebugHandler.cs
- DockAndAnchorLayout.cs
- CriticalHandle.cs
- SamlAuthorizationDecisionStatement.cs
- UnsafeNativeMethods.cs
- LeftCellWrapper.cs
- StateRuntime.cs
- UnionExpr.cs
- ByteBufferPool.cs
- UnsafeNetInfoNativeMethods.cs
- PeerNearMe.cs
- EntityDataSourceDesignerHelper.cs
- ValidationPropertyAttribute.cs
- MessagePropertyFilter.cs
- SerializationFieldInfo.cs
- XpsSerializerFactory.cs
- Page.cs
- LabelAutomationPeer.cs
- DesignerAdapterUtil.cs
- XmlChoiceIdentifierAttribute.cs
- oledbmetadatacollectionnames.cs
- UrlPath.cs
- SmiTypedGetterSetter.cs
- ToolStripInSituService.cs
- WindowsButton.cs
- SynchronizationContext.cs
- HtmlInputSubmit.cs
- SelectionProcessor.cs
- SystemColorTracker.cs
- OrderingExpression.cs
- MustUnderstandSoapException.cs
- OwnerDrawPropertyBag.cs
- ActivityContext.cs
- AbstractExpressions.cs
- DesignerAttribute.cs
- SqlServices.cs
- DBNull.cs
- FrameSecurityDescriptor.cs
- NavigationWindow.cs
- DocumentCollection.cs
- StreamWriter.cs
- ApplicationManager.cs
- AssertFilter.cs
- SparseMemoryStream.cs
- FixedSOMFixedBlock.cs
- PrimaryKeyTypeConverter.cs
- FreeFormDesigner.cs
- GcHandle.cs
- UnsupportedPolicyOptionsException.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- AdvancedBindingEditor.cs