Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / NetworkInformationException.cs / 1 / NetworkInformationException.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Net.NetworkInformation {
using System;
using System.ComponentModel;
using System.Net.Sockets;
using System.Runtime.Serialization;
using System.Runtime.InteropServices;
///
///
/// Provides NetworkInformation exceptions to the application.
///
///
[Serializable]
public class NetworkInformationException : Win32Exception {
///
///
/// Creates a new instance of the class with the default error code.
///
///
public NetworkInformationException() : base(Marshal.GetLastWin32Error()) {
}
///
///
/// Creates a new instance of the class with the specified error code.
///
///
public NetworkInformationException(int errorCode) : base(errorCode) {
}
internal NetworkInformationException(SocketError socketError) : base((int)socketError) {
}
protected NetworkInformationException(SerializationInfo serializationInfo, StreamingContext streamingContext)
: base(serializationInfo, streamingContext) {
}
///
/// [To be supplied.]
///
public override int ErrorCode {
//
// the base class returns the HResult with this property
// we need the Win32 Error Code, hence the override.
//
get {
return NativeErrorCode;
}
}
}; // class NetworkInformationException
} // namespace System.Net.NetworkInformation
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FunctionNode.cs
- Stack.cs
- ObjectItemCollection.cs
- LocationUpdates.cs
- CqlLexer.cs
- ArgumentDesigner.xaml.cs
- DBCSCodePageEncoding.cs
- DbProviderFactoriesConfigurationHandler.cs
- EditorPartChrome.cs
- Rotation3D.cs
- BamlCollectionHolder.cs
- webeventbuffer.cs
- XmlCharacterData.cs
- SoapFault.cs
- MatrixTransform.cs
- XmlSchemaAll.cs
- ScrollEventArgs.cs
- ArithmeticException.cs
- DefaultProxySection.cs
- DataSourceSelectArguments.cs
- LambdaCompiler.Expressions.cs
- DataRelation.cs
- SqlPersonalizationProvider.cs
- URI.cs
- SettingsPropertyCollection.cs
- EntityDataSourceMemberPath.cs
- StyleModeStack.cs
- EditingCommands.cs
- SymLanguageVendor.cs
- SchemaImporterExtensionElement.cs
- HScrollBar.cs
- Transform3D.cs
- IntSecurity.cs
- EventWaitHandle.cs
- ConfigurationSchemaErrors.cs
- CookieProtection.cs
- StandardMenuStripVerb.cs
- WebPermission.cs
- ThrowHelper.cs
- Soap11ServerProtocol.cs
- RuntimeArgument.cs
- NodeLabelEditEvent.cs
- PartialClassGenerationTask.cs
- SizeFConverter.cs
- Delay.cs
- StyleCollectionEditor.cs
- TextBoxView.cs
- StreamGeometry.cs
- UserPreferenceChangingEventArgs.cs
- CommonDialog.cs
- ListCollectionView.cs
- TimeIntervalCollection.cs
- ClientEndpointLoader.cs
- DataSvcMapFile.cs
- Dispatcher.cs
- CreateUserErrorEventArgs.cs
- returneventsaver.cs
- LinkDesigner.cs
- Point3DConverter.cs
- httpserverutility.cs
- MatrixCamera.cs
- WebPartCatalogCloseVerb.cs
- EventWaitHandleSecurity.cs
- NamedElement.cs
- Int32CollectionValueSerializer.cs
- ChangeConflicts.cs
- DbParameterCollectionHelper.cs
- ThicknessAnimationUsingKeyFrames.cs
- UriScheme.cs
- TraceData.cs
- ApplicationSecurityInfo.cs
- Transactions.cs
- Brush.cs
- SkinIDTypeConverter.cs
- ImageSource.cs
- RectAnimationClockResource.cs
- ProgressBarAutomationPeer.cs
- BitmapEffectGroup.cs
- XmlBindingWorker.cs
- IndependentAnimationStorage.cs
- NumericUpDownAccelerationCollection.cs
- ResourcePermissionBaseEntry.cs
- TextTreePropertyUndoUnit.cs
- ContentPropertyAttribute.cs
- Endpoint.cs
- ConfigurationSchemaErrors.cs
- VerificationAttribute.cs
- GregorianCalendarHelper.cs
- HtmlWindowCollection.cs
- ReadOnlyTernaryTree.cs
- WinInet.cs
- SAPICategories.cs
- EntityDataReader.cs
- XmlDataLoader.cs
- EntityCollection.cs
- SmtpMail.cs
- MachineKey.cs
- ProgressBar.cs
- ObservableCollectionDefaultValueFactory.cs
- WebPartMinimizeVerb.cs