Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CollectionChangeEventArgs.cs
- BamlLocalizableResource.cs
- CompositeKey.cs
- Line.cs
- GrabHandleGlyph.cs
- CollectionBuilder.cs
- MethodToken.cs
- StickyNoteContentControl.cs
- PassportAuthenticationEventArgs.cs
- NumericUpDownAcceleration.cs
- errorpatternmatcher.cs
- ProviderCommandInfoUtils.cs
- MatrixTransform.cs
- VisemeEventArgs.cs
- DoubleUtil.cs
- Utils.cs
- XmlEntityReference.cs
- EncoderNLS.cs
- StylusSystemGestureEventArgs.cs
- _LocalDataStore.cs
- KeyValueSerializer.cs
- XmlEnumAttribute.cs
- ZipArchive.cs
- PropertyPathWorker.cs
- CustomErrorsSection.cs
- MessageBuilder.cs
- ImageListUtils.cs
- ClickablePoint.cs
- DocumentViewer.cs
- CompoundFileReference.cs
- ApplicationInfo.cs
- ComboBox.cs
- DataGridColumnReorderingEventArgs.cs
- InfoCardClaim.cs
- BindableAttribute.cs
- Page.cs
- OdbcConnectionPoolProviderInfo.cs
- FilterEventArgs.cs
- exports.cs
- Decoder.cs
- TargetConverter.cs
- TextEffect.cs
- wgx_commands.cs
- AssemblyCollection.cs
- Connector.cs
- HighlightComponent.cs
- XmlSignificantWhitespace.cs
- TypeLibraryHelper.cs
- CodeEntryPointMethod.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ComboBoxAutomationPeer.cs
- MD5.cs
- SqlRemoveConstantOrderBy.cs
- Int64Animation.cs
- WebColorConverter.cs
- ClrProviderManifest.cs
- VariableModifiersHelper.cs
- WebBrowser.cs
- DescendantOverDescendantQuery.cs
- BitVector32.cs
- WebPartConnection.cs
- ChtmlTextWriter.cs
- StructuralCache.cs
- DataTrigger.cs
- CodeGotoStatement.cs
- GenericUriParser.cs
- GACMembershipCondition.cs
- MouseBinding.cs
- NodeFunctions.cs
- LogLogRecordHeader.cs
- TrackingStringDictionary.cs
- StickyNoteContentControl.cs
- BasicBrowserDialog.cs
- SqlStatistics.cs
- XmlAttributes.cs
- UserMapPath.cs
- SerializationEventsCache.cs
- Point3DKeyFrameCollection.cs
- XsdDateTime.cs
- TreeBuilderBamlTranslator.cs
- SetIterators.cs
- XMLDiffLoader.cs
- Form.cs
- HttpModuleActionCollection.cs
- SoapSchemaImporter.cs
- ToolStripProgressBar.cs
- VirtualDirectoryMapping.cs
- TCPClient.cs
- TextParentUndoUnit.cs
- UnorderedHashRepartitionStream.cs
- UnsignedPublishLicense.cs
- Parser.cs
- ObjectDisposedException.cs
- View.cs
- ToolStripContainerActionList.cs
- BasicViewGenerator.cs
- ProfilePropertyNameValidator.cs
- DataSysAttribute.cs
- Globals.cs
- DetailsViewCommandEventArgs.cs