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
- RelationshipConverter.cs
- HighContrastHelper.cs
- BaseTemplateBuildProvider.cs
- EdmScalarPropertyAttribute.cs
- EntitySetBaseCollection.cs
- _AutoWebProxyScriptEngine.cs
- ConnectionPoint.cs
- StringReader.cs
- ResourceDescriptionAttribute.cs
- PersistenceException.cs
- RSAOAEPKeyExchangeFormatter.cs
- SendKeys.cs
- TextWriter.cs
- StateMachine.cs
- EndPoint.cs
- DataColumnPropertyDescriptor.cs
- RegionInfo.cs
- XmlCountingReader.cs
- CatalogPartCollection.cs
- ComponentResourceKey.cs
- FileDialogCustomPlacesCollection.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- HwndKeyboardInputProvider.cs
- IndentedTextWriter.cs
- _RequestCacheProtocol.cs
- ZipPackagePart.cs
- ExtentKey.cs
- SoapMessage.cs
- StylusPointPropertyInfoDefaults.cs
- DBAsyncResult.cs
- CodeIterationStatement.cs
- PiiTraceSource.cs
- ReferenceConverter.cs
- DataGridViewCellEventArgs.cs
- DocumentPage.cs
- ControlValuePropertyAttribute.cs
- ValidationUtility.cs
- StreamWriter.cs
- DispatcherHooks.cs
- BuildResultCache.cs
- _SSPIWrapper.cs
- UseLicense.cs
- ObjectDataSourceEventArgs.cs
- GroupBox.cs
- FixedSOMLineCollection.cs
- DataObjectFieldAttribute.cs
- TraceLog.cs
- MultiTargetingUtil.cs
- DirectionalLight.cs
- ChineseLunisolarCalendar.cs
- TypeElement.cs
- UIPermission.cs
- InkCanvasSelectionAdorner.cs
- FlowDocumentReader.cs
- DayRenderEvent.cs
- BaseCodePageEncoding.cs
- HttpResponseMessageProperty.cs
- ListBoxAutomationPeer.cs
- TabControl.cs
- PagesSection.cs
- TableHeaderCell.cs
- Rights.cs
- CodeValidator.cs
- storagemappingitemcollection.viewdictionary.cs
- ConfigXmlAttribute.cs
- CultureSpecificCharacterBufferRange.cs
- Pen.cs
- ProtectedConfigurationSection.cs
- SourceFileBuildProvider.cs
- ImageSource.cs
- ProviderConnectionPointCollection.cs
- Ray3DHitTestResult.cs
- MaskedTextBoxTextEditor.cs
- MatchingStyle.cs
- UpdateExpressionVisitor.cs
- MultiSelectRootGridEntry.cs
- ObjectSecurity.cs
- DataGridTextBox.cs
- DataTableNewRowEvent.cs
- UIElementCollection.cs
- TextBoxAutomationPeer.cs
- CultureInfoConverter.cs
- FormViewPagerRow.cs
- ObjectTypeMapping.cs
- SchemaEntity.cs
- X509CertificateTokenFactoryCredential.cs
- SerTrace.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- TextRunTypographyProperties.cs
- SqlDataSourceEnumerator.cs
- TreeNode.cs
- UnsafeNativeMethodsCLR.cs
- WindowsListViewScroll.cs
- ColorTransform.cs
- ListViewItemSelectionChangedEvent.cs
- SafePEFileHandle.cs
- StreamingContext.cs
- FormsAuthentication.cs
- SoundPlayer.cs
- DateTimeValueSerializerContext.cs