Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IO / DriveNotFoundException.cs / 1305376 / DriveNotFoundException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //============================================================ // // Class: DriveNotFoundException // //[....] // // Purpose: Exception for accessing a drive that is not available. // // //=========================================================== using System; using System.Runtime.Serialization; namespace System.IO { //Thrown when trying to access a drive that is not availabe. [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class DriveNotFoundException : IOException { public DriveNotFoundException() : base(Environment.GetResourceString("Arg_DriveNotFoundException")) { SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); } public DriveNotFoundException(String message) : base(message) { SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); } public DriveNotFoundException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); } [System.Security.SecuritySafeCritical] // auto-generated protected DriveNotFoundException(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: DriveNotFoundException // //[....] // // Purpose: Exception for accessing a drive that is not available. // // //=========================================================== using System; using System.Runtime.Serialization; namespace System.IO { //Thrown when trying to access a drive that is not availabe. [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class DriveNotFoundException : IOException { public DriveNotFoundException() : base(Environment.GetResourceString("Arg_DriveNotFoundException")) { SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); } public DriveNotFoundException(String message) : base(message) { SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); } public DriveNotFoundException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); } [System.Security.SecuritySafeCritical] // auto-generated protected DriveNotFoundException(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
- ByteStreamGeometryContext.cs
- TextMessageEncodingElement.cs
- DocumentPageViewAutomationPeer.cs
- ExpandCollapsePattern.cs
- KnownBoxes.cs
- ArrayMergeHelper.cs
- BufferedReadStream.cs
- SqlClientPermission.cs
- SerializationException.cs
- WindowsStreamSecurityBindingElement.cs
- StrongNameMembershipCondition.cs
- DragDrop.cs
- TextElementAutomationPeer.cs
- PageHandlerFactory.cs
- ForceCopyBuildProvider.cs
- DataGridViewColumnConverter.cs
- WebPartMovingEventArgs.cs
- PowerModeChangedEventArgs.cs
- XhtmlBasicTextBoxAdapter.cs
- UnaryOperationBinder.cs
- WindowsTreeView.cs
- MULTI_QI.cs
- SoapElementAttribute.cs
- PropertyMapper.cs
- XPathSelfQuery.cs
- ClientBuildManager.cs
- TemplateXamlParser.cs
- StructuralCache.cs
- SchemaNotation.cs
- ToolStripGrip.cs
- StatusBarItem.cs
- XappLauncher.cs
- SqlInternalConnectionTds.cs
- BooleanFunctions.cs
- FilteredReadOnlyMetadataCollection.cs
- EntityCommandCompilationException.cs
- SQLSingleStorage.cs
- CurrentChangingEventArgs.cs
- SmiContextFactory.cs
- RadialGradientBrush.cs
- RepeaterItem.cs
- SQLResource.cs
- TypefaceMap.cs
- ToolStripSplitStackLayout.cs
- AnimationLayer.cs
- ItemsPresenter.cs
- ChannelDispatcherCollection.cs
- AsynchronousChannelMergeEnumerator.cs
- ProcessStartInfo.cs
- ZoneIdentityPermission.cs
- SrgsElementFactoryCompiler.cs
- PointIndependentAnimationStorage.cs
- ExtentKey.cs
- DesignSurface.cs
- OracleDataReader.cs
- RadioButtonAutomationPeer.cs
- TypeViewSchema.cs
- HtmlInputControl.cs
- RangeBase.cs
- ProxyWebPart.cs
- Int16Converter.cs
- BindValidator.cs
- EntityDataSourceReferenceGroup.cs
- ServiceHttpModule.cs
- Events.cs
- FormsAuthenticationTicket.cs
- StringUtil.cs
- StreamingContext.cs
- FactoryGenerator.cs
- AvTraceDetails.cs
- CategoryNameCollection.cs
- SqlFacetAttribute.cs
- WindowsFormsHostAutomationPeer.cs
- BasicViewGenerator.cs
- SortQueryOperator.cs
- DocumentReferenceCollection.cs
- PageEventArgs.cs
- CommandHelper.cs
- DataGridViewTextBoxColumn.cs
- GeneratedCodeAttribute.cs
- CheckableControlBaseAdapter.cs
- QueueAccessMode.cs
- SeparatorAutomationPeer.cs
- PreservationFileReader.cs
- XomlDesignerLoader.cs
- Range.cs
- XmlSchemaException.cs
- TextRangeAdaptor.cs
- MasterPageBuildProvider.cs
- Image.cs
- SerializerProvider.cs
- ToolStripContentPanelRenderEventArgs.cs
- BindingOperations.cs
- DataBinding.cs
- UInt32Converter.cs
- TypeLoadException.cs
- Scripts.cs
- BypassElement.cs
- NotificationContext.cs
- Signature.cs