Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / IO / DriveNotFoundException.cs / 1 / 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);
}
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);
}
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
- FixedDocumentPaginator.cs
- TimeSpanMinutesConverter.cs
- OrderByBuilder.cs
- EdmConstants.cs
- DigitalSignature.cs
- HttpHeaderCollection.cs
- PointCollectionConverter.cs
- PointAnimationUsingKeyFrames.cs
- CodeNamespace.cs
- CompilationSection.cs
- CancellationHandler.cs
- FullTrustAssemblyCollection.cs
- ColorAnimationUsingKeyFrames.cs
- DbConvert.cs
- TakeQueryOptionExpression.cs
- TextEditorTables.cs
- GeneralTransform3DTo2D.cs
- XmlNamespaceManager.cs
- MD5CryptoServiceProvider.cs
- WorkflowExecutor.cs
- CalendarTable.cs
- ObjectParameterCollection.cs
- ItemsChangedEventArgs.cs
- CompositeFontFamily.cs
- DetailsView.cs
- WebConfigurationHostFileChange.cs
- LoginView.cs
- TabItemAutomationPeer.cs
- FormatterServices.cs
- VersionedStreamOwner.cs
- mediaeventargs.cs
- ParagraphVisual.cs
- XPathException.cs
- DataListItemCollection.cs
- PanelDesigner.cs
- TextAnchor.cs
- CellParaClient.cs
- QueryResponse.cs
- mansign.cs
- PropertyGridCommands.cs
- PtsHost.cs
- InheritanceAttribute.cs
- Vector3DValueSerializer.cs
- RowSpanVector.cs
- CommittableTransaction.cs
- EventManager.cs
- ArrangedElementCollection.cs
- WebPartMenu.cs
- ReflectionServiceProvider.cs
- WebResourceUtil.cs
- XamlToRtfParser.cs
- Module.cs
- TextTreeUndoUnit.cs
- GroupItem.cs
- EasingKeyFrames.cs
- ProfileSettings.cs
- SqlConnectionStringBuilder.cs
- HtmlFormParameterWriter.cs
- WebConvert.cs
- IsolatedStorageFile.cs
- FacetChecker.cs
- ProcessProtocolHandler.cs
- BaseTreeIterator.cs
- AssertFilter.cs
- TraceUtils.cs
- UserControlParser.cs
- Vector3DCollectionConverter.cs
- DesignerActionUI.cs
- ImageList.cs
- AppPool.cs
- ReflectionUtil.cs
- ResourcePart.cs
- ExpressionTable.cs
- DataGridViewDataErrorEventArgs.cs
- ContextStaticAttribute.cs
- ZipPackage.cs
- MDIControlStrip.cs
- Size3D.cs
- CompilerHelpers.cs
- ListViewItemEventArgs.cs
- CacheHelper.cs
- BamlReader.cs
- DataRelationPropertyDescriptor.cs
- BinaryUtilClasses.cs
- ClientRoleProvider.cs
- ApplicationSecurityInfo.cs
- LiteralLink.cs
- ComponentGlyph.cs
- ContextMenuService.cs
- InvalidOperationException.cs
- AddingNewEventArgs.cs
- COM2TypeInfoProcessor.cs
- DrawListViewSubItemEventArgs.cs
- AvtEvent.cs
- ProfileManager.cs
- XmlnsDictionary.cs
- Transform3DCollection.cs
- QilGenerator.cs
- TrackingExtract.cs
- TextServicesPropertyRanges.cs