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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EdmFunction.cs
- StateWorkerRequest.cs
- CacheChildrenQuery.cs
- GPStream.cs
- FileDialogCustomPlacesCollection.cs
- ButtonRenderer.cs
- SqlStatistics.cs
- MessageTransmitTraceRecord.cs
- QueryOptionExpression.cs
- CheckPair.cs
- WeakReferenceEnumerator.cs
- PropertyDescriptorComparer.cs
- DrawingBrush.cs
- ResourceReferenceKeyNotFoundException.cs
- ErrorEventArgs.cs
- ToolStripPanelRenderEventArgs.cs
- WmpBitmapEncoder.cs
- SrgsDocumentParser.cs
- EntityDataSourceEntityTypeFilterItem.cs
- TypeElementCollection.cs
- HashAlgorithm.cs
- TableNameAttribute.cs
- XNodeNavigator.cs
- Math.cs
- XmlSerializer.cs
- ConstructorBuilder.cs
- ToolTipService.cs
- HyperLinkDataBindingHandler.cs
- XamlSerializerUtil.cs
- AssertSection.cs
- SecurityUtils.cs
- Comparer.cs
- Configuration.cs
- XmlSerializationGeneratedCode.cs
- WebRequest.cs
- DocumentSequence.cs
- safePerfProviderHandle.cs
- DataTableReader.cs
- SoapBinding.cs
- CriticalHandle.cs
- _FtpControlStream.cs
- LeaseManager.cs
- ObjectDataSourceDisposingEventArgs.cs
- ContentIterators.cs
- DeploymentSectionCache.cs
- Expression.cs
- AuthorizationRuleCollection.cs
- InvalidCastException.cs
- DbExpressionVisitor.cs
- ReturnType.cs
- AppDomain.cs
- SerializationTrace.cs
- TcpServerChannel.cs
- IERequestCache.cs
- SmtpTransport.cs
- DoubleStorage.cs
- FacetEnabledSchemaElement.cs
- RemotingException.cs
- Context.cs
- SystemKeyConverter.cs
- Accessible.cs
- FamilyMapCollection.cs
- TextProperties.cs
- HttpModuleCollection.cs
- IISMapPath.cs
- SmtpCommands.cs
- BuilderPropertyEntry.cs
- BlurEffect.cs
- OperatorExpressions.cs
- XmlObjectSerializerReadContext.cs
- MaskInputRejectedEventArgs.cs
- BooleanConverter.cs
- ObjectResult.cs
- ExtendedProperty.cs
- StandardTransformFactory.cs
- GeneralTransform3DCollection.cs
- EraserBehavior.cs
- DrawingBrush.cs
- CommonGetThemePartSize.cs
- DataServiceClientException.cs
- InheritablePropertyChangeInfo.cs
- BasePropertyDescriptor.cs
- DictionaryContent.cs
- NCryptSafeHandles.cs
- StyleXamlParser.cs
- UIElementCollection.cs
- EFTableProvider.cs
- ReflectionUtil.cs
- XmlSchemaCollection.cs
- OpCopier.cs
- Stylus.cs
- TreeIterators.cs
- WindowsContainer.cs
- SqlDataSourceView.cs
- SweepDirectionValidation.cs
- PeerApplicationLaunchInfo.cs
- SqlClientFactory.cs
- NotImplementedException.cs
- WindowsAuthenticationModule.cs
- BoundsDrawingContextWalker.cs