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
- BooleanExpr.cs
- TemplateXamlParser.cs
- FrameworkContentElement.cs
- StylusPlugin.cs
- Color.cs
- _OSSOCK.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ToolStripSplitButton.cs
- DataSourceExpressionCollection.cs
- SqlMethodTransformer.cs
- InputLanguageCollection.cs
- RewritingValidator.cs
- MembershipSection.cs
- SqlXmlStorage.cs
- Parser.cs
- DeferredElementTreeState.cs
- SafeHandles.cs
- RelationalExpressions.cs
- HwndHost.cs
- InlineCollection.cs
- DBProviderConfigurationHandler.cs
- messageonlyhwndwrapper.cs
- SoapIgnoreAttribute.cs
- SmiEventSink_DeferedProcessing.cs
- BinaryFormatter.cs
- mda.cs
- Label.cs
- EntityCommandCompilationException.cs
- XamlSerializationHelper.cs
- PhysicalAddress.cs
- ProtocolsConfigurationEntry.cs
- AssertFilter.cs
- PrintController.cs
- GridLengthConverter.cs
- ValueTypePropertyReference.cs
- MSHTMLHost.cs
- ColorAnimationUsingKeyFrames.cs
- PrintDocument.cs
- loginstatus.cs
- PaperSource.cs
- XPathArrayIterator.cs
- TypeDescriptionProvider.cs
- QilLiteral.cs
- LexicalChunk.cs
- TransformerInfoCollection.cs
- RightsManagementEncryptionTransform.cs
- Application.cs
- FormViewInsertedEventArgs.cs
- GeometryCombineModeValidation.cs
- SerializationObjectManager.cs
- ControlParser.cs
- CalendarDataBindingHandler.cs
- figurelengthconverter.cs
- TransformDescriptor.cs
- SchemaEntity.cs
- DateTimeConstantAttribute.cs
- PropertyMapper.cs
- ColumnWidthChangedEvent.cs
- PathFigureCollection.cs
- ImageListDesigner.cs
- XmlDocumentFieldSchema.cs
- SystemInfo.cs
- ReadOnlyDataSourceView.cs
- Material.cs
- AssertFilter.cs
- SkinBuilder.cs
- KeyNotFoundException.cs
- RijndaelManaged.cs
- ConditionalWeakTable.cs
- WebPartsPersonalization.cs
- TargetPerspective.cs
- InvokeCompletedEventArgs.cs
- CacheForPrimitiveTypes.cs
- Size3DValueSerializer.cs
- RemotingServices.cs
- XmlSchemaNotation.cs
- PolygonHotSpot.cs
- PolyQuadraticBezierSegment.cs
- SrgsGrammarCompiler.cs
- CodeGenHelper.cs
- XmlExpressionDumper.cs
- PersistenceTask.cs
- CompoundFileStorageReference.cs
- FontWeights.cs
- EditingCommands.cs
- ColorBuilder.cs
- MultipleViewPattern.cs
- FixedElement.cs
- ProgressBarAutomationPeer.cs
- HttpProfileBase.cs
- InstancePersistenceEvent.cs
- AsymmetricKeyExchangeDeformatter.cs
- UnsafeNativeMethods.cs
- Page.cs
- AccessKeyManager.cs
- BitmapEffectInputData.cs
- RemoteWebConfigurationHost.cs
- TemplateBindingExtensionConverter.cs
- ByteStreamMessageEncoderFactory.cs
- StringValueSerializer.cs