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; ////// [Serializable] public class NetworkInformationException : Win32Exception { ////// Provides NetworkInformation exceptions to the application. /// ////// public NetworkInformationException() : base(Marshal.GetLastWin32Error()) { } ////// Creates a new instance of the ///class with the default error code. /// /// public NetworkInformationException(int errorCode) : base(errorCode) { } internal NetworkInformationException(SocketError socketError) : base((int)socketError) { } protected NetworkInformationException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext) { } ////// Creates a new instance of the ///class with the specified error code. /// /// 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[To be supplied.] ///
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BoundField.cs
- Version.cs
- SecurityException.cs
- SimpleMailWebEventProvider.cs
- MediaElementAutomationPeer.cs
- DESCryptoServiceProvider.cs
- XmlParserContext.cs
- MenuCommandService.cs
- DocumentViewerAutomationPeer.cs
- WindowsFormsSectionHandler.cs
- CharEntityEncoderFallback.cs
- AnnotationAdorner.cs
- BaseCodeDomTreeGenerator.cs
- SqlError.cs
- PageSetupDialog.cs
- MetadataItemCollectionFactory.cs
- TCPClient.cs
- TextOptionsInternal.cs
- InputMethod.cs
- FileSystemWatcher.cs
- Helper.cs
- TextTreeTextNode.cs
- XmlNamespaceMapping.cs
- InkSerializer.cs
- ColorConverter.cs
- EntityDesignerBuildProvider.cs
- XmlHierarchyData.cs
- Exceptions.cs
- Expander.cs
- Point3DConverter.cs
- SQLDoubleStorage.cs
- CompositionTarget.cs
- AttachedPropertyBrowsableAttribute.cs
- ParallelLoopState.cs
- DomNameTable.cs
- Storyboard.cs
- HtmlDocument.cs
- OleDbFactory.cs
- GeneralTransform3D.cs
- StringOutput.cs
- SoapCodeExporter.cs
- GZipStream.cs
- DataViewSettingCollection.cs
- ListCollectionView.cs
- AnnotationAuthorChangedEventArgs.cs
- PopupRootAutomationPeer.cs
- Hashtable.cs
- UTF7Encoding.cs
- StorageScalarPropertyMapping.cs
- MetadataItemEmitter.cs
- DataRowView.cs
- LifetimeServices.cs
- CryptoHandle.cs
- ObjectListDesigner.cs
- VisualProxy.cs
- DbConnectionHelper.cs
- FileInfo.cs
- AppDomainAttributes.cs
- SqlOuterApplyReducer.cs
- CodeIdentifier.cs
- UpdateRecord.cs
- UInt64.cs
- DefaultWorkflowSchedulerService.cs
- AuthorizationSection.cs
- CertificateManager.cs
- ApplicationGesture.cs
- PublisherMembershipCondition.cs
- BooleanToVisibilityConverter.cs
- QueueException.cs
- Image.cs
- ReceiveContext.cs
- IssuanceTokenProviderState.cs
- GroupQuery.cs
- AssemblyName.cs
- TreeWalker.cs
- DifferencingCollection.cs
- DataContext.cs
- SiteIdentityPermission.cs
- Axis.cs
- FreezableOperations.cs
- entityreference_tresulttype.cs
- PropertyEmitter.cs
- Int64.cs
- parserscommon.cs
- Properties.cs
- EventProviderClassic.cs
- Cursors.cs
- FrameworkEventSource.cs
- DBSqlParserColumn.cs
- SqlXml.cs
- FixedElement.cs
- GridViewUpdateEventArgs.cs
- CodePageUtils.cs
- SchemaCollectionCompiler.cs
- GestureRecognitionResult.cs
- ToggleButton.cs
- XmlILOptimizerVisitor.cs
- CursorConverter.cs
- IdentifierService.cs
- SqlNode.cs