Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EncryptedXml.cs
- ConfigXmlCDataSection.cs
- AssertSection.cs
- InvalidWMPVersionException.cs
- PenThread.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- Parser.cs
- WebHttpBindingElement.cs
- BaseCAMarshaler.cs
- PropertySegmentSerializationProvider.cs
- FileDocument.cs
- PageCodeDomTreeGenerator.cs
- RuleInfoComparer.cs
- DataObjectMethodAttribute.cs
- MailMessage.cs
- DropShadowBitmapEffect.cs
- RijndaelManagedTransform.cs
- _NestedSingleAsyncResult.cs
- Rotation3DKeyFrameCollection.cs
- GuidConverter.cs
- ExtendedPropertyInfo.cs
- SamlSerializer.cs
- InvokeHandlers.cs
- InternalControlCollection.cs
- XpsFilter.cs
- RepeaterCommandEventArgs.cs
- RepeaterCommandEventArgs.cs
- DeferredRunTextReference.cs
- RSAPKCS1SignatureFormatter.cs
- DesignerSerializationOptionsAttribute.cs
- ReplacementText.cs
- ConfigurationUtility.cs
- BitmapMetadataEnumerator.cs
- XamlStyleSerializer.cs
- PersonalizationAdministration.cs
- TextAnchor.cs
- errorpatternmatcher.cs
- GifBitmapEncoder.cs
- ASCIIEncoding.cs
- Scene3D.cs
- RTLAwareMessageBox.cs
- ThemeInfoAttribute.cs
- Authorization.cs
- CallbackException.cs
- webeventbuffer.cs
- SspiNegotiationTokenAuthenticatorState.cs
- ExpressionVisitor.cs
- URI.cs
- Compilation.cs
- SqlResolver.cs
- SpellerError.cs
- DataGridViewHitTestInfo.cs
- NumberSubstitution.cs
- DataGridViewTextBoxEditingControl.cs
- XmlUtil.cs
- DataGridViewColumn.cs
- DataGridHelper.cs
- HTMLTagNameToTypeMapper.cs
- AuthenticateEventArgs.cs
- Header.cs
- cookiecontainer.cs
- ParsedAttributeCollection.cs
- ListViewHitTestInfo.cs
- DataSourceXmlAttributeAttribute.cs
- TimeoutConverter.cs
- MobileControlDesigner.cs
- EdmConstants.cs
- UInt64Converter.cs
- DigitShape.cs
- SqlSelectStatement.cs
- IntMinMaxAggregationOperator.cs
- NamespaceEmitter.cs
- EndpointPerformanceCounters.cs
- ObjectStateFormatter.cs
- PagesChangedEventArgs.cs
- AccessText.cs
- ClrProviderManifest.cs
- RectangleHotSpot.cs
- ContentDefinition.cs
- DataBindingList.cs
- BufferModesCollection.cs
- XmlSchemaGroup.cs
- SubMenuStyleCollection.cs
- ChangesetResponse.cs
- AssemblyResourceLoader.cs
- RegistryExceptionHelper.cs
- CannotUnloadAppDomainException.cs
- CompensationDesigner.cs
- EnumUnknown.cs
- RouteCollection.cs
- EntitySqlQueryCacheKey.cs
- DescendantBaseQuery.cs
- InkCollectionBehavior.cs
- EntityContainer.cs
- EventBuilder.cs
- GridEntryCollection.cs
- PropertyItemInternal.cs
- SchemaNamespaceManager.cs
- FixedTextBuilder.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs