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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataProtection.cs
- PageTheme.cs
- HttpCacheVaryByContentEncodings.cs
- DbParameterHelper.cs
- PrimarySelectionAdorner.cs
- ThemeDirectoryCompiler.cs
- MemoryResponseElement.cs
- PlaceHolder.cs
- TextTabProperties.cs
- BaseProcessProtocolHandler.cs
- WebBrowserHelper.cs
- SmtpNtlmAuthenticationModule.cs
- ObjectItemCachedAssemblyLoader.cs
- UnicastIPAddressInformationCollection.cs
- ListViewInsertEventArgs.cs
- SemanticBasicElement.cs
- LayoutSettings.cs
- OleDbRowUpdatingEvent.cs
- ActivityTypeDesigner.xaml.cs
- Reference.cs
- Typeface.cs
- ListViewDeletedEventArgs.cs
- StdValidatorsAndConverters.cs
- HotSpot.cs
- UnauthorizedWebPart.cs
- Attributes.cs
- CachedFontFamily.cs
- TextDecorationCollection.cs
- MatrixValueSerializer.cs
- UrlParameterReader.cs
- DecoderFallback.cs
- WorkflowQueueInfo.cs
- Odbc32.cs
- PageTrueTypeFont.cs
- Calendar.cs
- RenderingBiasValidation.cs
- TypedTableBaseExtensions.cs
- MenuItem.cs
- DataExpression.cs
- MemoryPressure.cs
- FirstMatchCodeGroup.cs
- BindingWorker.cs
- ValueSerializerAttribute.cs
- BufferedGraphicsContext.cs
- SecurityTokenTypes.cs
- TransactionScope.cs
- ActiveXContainer.cs
- ManifestBasedResourceGroveler.cs
- WebPartCatalogAddVerb.cs
- VisualStateChangedEventArgs.cs
- MimeXmlImporter.cs
- Dump.cs
- NetworkInformationException.cs
- WmfPlaceableFileHeader.cs
- TraceUtility.cs
- DebugControllerThread.cs
- CodeRemoveEventStatement.cs
- CompositeControl.cs
- ListControlStringCollectionEditor.cs
- CacheDependency.cs
- ImageListUtils.cs
- Condition.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ButtonBaseDesigner.cs
- WebColorConverter.cs
- SimpleMailWebEventProvider.cs
- DelegatingHeader.cs
- IconEditor.cs
- DocumentViewerHelper.cs
- WebPermission.cs
- Vector3D.cs
- GroupBox.cs
- xamlnodes.cs
- ServerIdentity.cs
- GenericEnumerator.cs
- OpenFileDialog.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PowerStatus.cs
- DateTimeStorage.cs
- StringOutput.cs
- NumericUpDownAcceleration.cs
- WizardForm.cs
- SchemaInfo.cs
- CounterCreationDataCollection.cs
- DayRenderEvent.cs
- TableLayout.cs
- PostBackTrigger.cs
- FixUp.cs
- WorkItem.cs
- ConfigurationSchemaErrors.cs
- ListItem.cs
- HtmlTitle.cs
- ListViewCancelEventArgs.cs
- SqlTriggerContext.cs
- ParameterBuilder.cs
- SelectionProviderWrapper.cs
- PopupRootAutomationPeer.cs
- DesignTimeType.cs
- OutputWindow.cs
- InvalidDocumentContentsException.cs