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
- _NegotiateClient.cs
- ViewManagerAttribute.cs
- ModelVisual3D.cs
- Message.cs
- ConfigXmlAttribute.cs
- FontUnitConverter.cs
- ToolStripItemImageRenderEventArgs.cs
- HandlerBase.cs
- EventHandlersStore.cs
- EncoderBestFitFallback.cs
- StylusCaptureWithinProperty.cs
- LocalizationParserHooks.cs
- FormViewPagerRow.cs
- ZeroOpNode.cs
- SupportingTokenAuthenticatorSpecification.cs
- Geometry.cs
- PbrsForward.cs
- InternalSafeNativeMethods.cs
- WeakHashtable.cs
- ConditionedDesigner.cs
- DataGridViewCellStyleChangedEventArgs.cs
- RecordBuilder.cs
- TreeNode.cs
- AssemblyHash.cs
- ListItem.cs
- ImplicitInputBrush.cs
- WindowsGraphics.cs
- SelectedDatesCollection.cs
- mda.cs
- NavigatorInput.cs
- PrtTicket_Editor.cs
- ValidationContext.cs
- DocumentViewerHelper.cs
- OdbcStatementHandle.cs
- FloaterParagraph.cs
- InfoCardSchemas.cs
- FixedSOMPageConstructor.cs
- SolidColorBrush.cs
- AutoResetEvent.cs
- CodeSnippetCompileUnit.cs
- MultiDataTrigger.cs
- EntityContainerEntitySet.cs
- FontNamesConverter.cs
- Operator.cs
- TextReader.cs
- XmlILOptimizerVisitor.cs
- SQLInt64.cs
- SecurityKeyIdentifier.cs
- DataGridViewButtonColumn.cs
- ScrollProviderWrapper.cs
- RectIndependentAnimationStorage.cs
- StrokeFIndices.cs
- SynchronousChannelMergeEnumerator.cs
- GridEntry.cs
- SystemWebSectionGroup.cs
- AdRotatorDesigner.cs
- InstanceHandleReference.cs
- _FtpControlStream.cs
- SecurityDocument.cs
- DataGridViewRowCancelEventArgs.cs
- RepeaterItemEventArgs.cs
- HttpRequestTraceRecord.cs
- ServiceObjectContainer.cs
- SecurityMode.cs
- RepeaterItem.cs
- InstanceCreationEditor.cs
- InlineCollection.cs
- ImageInfo.cs
- _Connection.cs
- DefaultPerformanceCounters.cs
- BamlRecordReader.cs
- PolicyStatement.cs
- SourceFilter.cs
- ComNativeDescriptor.cs
- DiagnosticTraceSource.cs
- CaseStatementProjectedSlot.cs
- HttpAsyncResult.cs
- CngProperty.cs
- WebPartDisplayMode.cs
- ClosureBinding.cs
- ColorConverter.cs
- CellParagraph.cs
- SupportsEventValidationAttribute.cs
- InstanceNormalEvent.cs
- DataGridDesigner.cs
- ParameterSubsegment.cs
- TrustManagerPromptUI.cs
- DecoderFallback.cs
- SingleAnimationUsingKeyFrames.cs
- TypeNameConverter.cs
- GrabHandleGlyph.cs
- ToolStripRendererSwitcher.cs
- Operator.cs
- SaveFileDialog.cs
- ConfigurationManager.cs
- DisplayInformation.cs
- BitmapEffectInput.cs
- GenericWebPart.cs
- BuildDependencySet.cs
- SuspendDesigner.cs