Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IO / DirectoryNotFoundException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- UserControlParser.cs
- TextInfo.cs
- safex509handles.cs
- CrossAppDomainChannel.cs
- AutoGeneratedFieldProperties.cs
- OutOfMemoryException.cs
- Ops.cs
- MethodBuilderInstantiation.cs
- CodeTypeConstructor.cs
- ThreadAbortException.cs
- EmptyQuery.cs
- Deserializer.cs
- PersonalizableTypeEntry.cs
- SqlTransaction.cs
- List.cs
- ToolStripOverflowButton.cs
- ObjectAnimationBase.cs
- MetafileHeaderWmf.cs
- COM2Enum.cs
- ValueConversionAttribute.cs
- RuntimeConfig.cs
- Errors.cs
- DataGridAddNewRow.cs
- ColumnWidthChangingEvent.cs
- ResumeStoryboard.cs
- Int64KeyFrameCollection.cs
- OpenTypeCommon.cs
- DataServiceException.cs
- Mapping.cs
- XPathConvert.cs
- HtmlInputSubmit.cs
- TypedTableBase.cs
- Timer.cs
- MtomMessageEncodingElement.cs
- documentsequencetextview.cs
- ZipArchive.cs
- EncryptedData.cs
- Item.cs
- ArgIterator.cs
- AdPostCacheSubstitution.cs
- StylusPoint.cs
- TreeViewItemAutomationPeer.cs
- VariableBinder.cs
- SymDocumentType.cs
- GenerateTemporaryAssemblyTask.cs
- PrinterSettings.cs
- SelectiveScrollingGrid.cs
- MediaScriptCommandRoutedEventArgs.cs
- ByteStreamGeometryContext.cs
- FileAuthorizationModule.cs
- DependencyPropertyConverter.cs
- RunWorkerCompletedEventArgs.cs
- ThicknessKeyFrameCollection.cs
- DependencyProperty.cs
- XmlReaderSettings.cs
- storagemappingitemcollection.viewdictionary.cs
- MetadataArtifactLoaderCompositeResource.cs
- DrawToolTipEventArgs.cs
- AlternationConverter.cs
- ContainerParagraph.cs
- Point3D.cs
- Border.cs
- ServiceNameCollection.cs
- SQLInt32.cs
- UrlMappingCollection.cs
- DropAnimation.xaml.cs
- webproxy.cs
- XPathNode.cs
- HandlerFactoryWrapper.cs
- XamlStream.cs
- SqlProcedureAttribute.cs
- CancelAsyncOperationRequest.cs
- securitycriticaldataformultiplegetandset.cs
- InvokePattern.cs
- ResourceDisplayNameAttribute.cs
- Rect.cs
- SqlDataRecord.cs
- Grid.cs
- NotCondition.cs
- Clipboard.cs
- BoundsDrawingContextWalker.cs
- DispatcherEventArgs.cs
- WebPartConnectionCollection.cs
- StringSorter.cs
- XmlDownloadManager.cs
- CopyOnWriteList.cs
- XmlSerializerSection.cs
- LambdaCompiler.Statements.cs
- TypeUtil.cs
- UpdateCommand.cs
- ClientReliableChannelBinder.cs
- SafeNativeMethods.cs
- TabletDeviceInfo.cs
- XamlSerializerUtil.cs
- Odbc32.cs
- XmlRawWriterWrapper.cs
- Style.cs
- ClientScriptManager.cs
- DynamicQueryStringParameter.cs
- FormViewInsertEventArgs.cs