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
- TextAdaptor.cs
- WebScriptEndpointElement.cs
- AuthenticationSection.cs
- URLBuilder.cs
- Bits.cs
- ProjectionCamera.cs
- StickyNote.cs
- ToolStripItemTextRenderEventArgs.cs
- IsolatedStorageFile.cs
- CatalogPart.cs
- storepermission.cs
- TypeProvider.cs
- ColorConvertedBitmap.cs
- RectAnimationUsingKeyFrames.cs
- QilFunction.cs
- BlurEffect.cs
- WeakReferenceEnumerator.cs
- VBCodeProvider.cs
- XPathChildIterator.cs
- ComplexTypeEmitter.cs
- PositiveTimeSpanValidator.cs
- BCLDebug.cs
- MetadataStore.cs
- SqlDataSourceCache.cs
- ExecutionContext.cs
- ItemContainerProviderWrapper.cs
- FocusManager.cs
- PolyLineSegmentFigureLogic.cs
- SetStoryboardSpeedRatio.cs
- EncoderParameters.cs
- _DisconnectOverlappedAsyncResult.cs
- DataBindingHandlerAttribute.cs
- AccessedThroughPropertyAttribute.cs
- CheckPair.cs
- AssemblyCacheEntry.cs
- StreamSecurityUpgradeProvider.cs
- WaitHandle.cs
- DoubleIndependentAnimationStorage.cs
- DataIdProcessor.cs
- AnimationTimeline.cs
- ScalarConstant.cs
- TransportContext.cs
- ImageSource.cs
- MinimizableAttributeTypeConverter.cs
- QueryStringParameter.cs
- DbConnectionClosed.cs
- ISAPIApplicationHost.cs
- Line.cs
- RoutingEndpointTrait.cs
- BuildManager.cs
- SqlConnectionFactory.cs
- KeyedHashAlgorithm.cs
- ConnectorSelectionGlyph.cs
- AddInStore.cs
- DynamicActivityXamlReader.cs
- _ListenerRequestStream.cs
- ApplicationGesture.cs
- PropertyDescriptor.cs
- Cursor.cs
- IncrementalReadDecoders.cs
- CodeDirectoryCompiler.cs
- SqlDependencyListener.cs
- XPathDocument.cs
- SettingsContext.cs
- HierarchicalDataSourceConverter.cs
- HttpPostedFileWrapper.cs
- ParallelTimeline.cs
- LocalizationParserHooks.cs
- WpfKnownMember.cs
- OletxCommittableTransaction.cs
- MailWriter.cs
- SQLUtility.cs
- PeerEndPoint.cs
- DataKey.cs
- NullReferenceException.cs
- TextTrailingWordEllipsis.cs
- RawContentTypeMapper.cs
- Condition.cs
- PolyLineSegment.cs
- XmlSchemaDocumentation.cs
- CompareValidator.cs
- XsltOutput.cs
- UrlMapping.cs
- SQLUtility.cs
- ReachDocumentReferenceSerializer.cs
- PathStreamGeometryContext.cs
- ValidationService.cs
- LinqDataSourceSelectEventArgs.cs
- InteropEnvironment.cs
- VectorValueSerializer.cs
- CriticalHandle.cs
- ContentType.cs
- TypeContext.cs
- ParserHooks.cs
- WindowsProgressbar.cs
- CustomAttributeFormatException.cs
- TextBox.cs
- CultureInfo.cs
- DesignerActionItemCollection.cs
- HttpTransportBindingElement.cs