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
- EdmSchemaAttribute.cs
- Base64Encoding.cs
- OperationResponse.cs
- OleDbSchemaGuid.cs
- DbConnectionFactory.cs
- VersionedStream.cs
- XmlSchemaNotation.cs
- GroupItem.cs
- GroupBox.cs
- EventToken.cs
- StylusEditingBehavior.cs
- _TLSstream.cs
- SoapObjectInfo.cs
- TrailingSpaceComparer.cs
- SmiConnection.cs
- HttpInputStream.cs
- DelayedRegex.cs
- HyperLink.cs
- ContentDefinition.cs
- PrintDialog.cs
- PropertyItem.cs
- QuaternionIndependentAnimationStorage.cs
- ClientUrlResolverWrapper.cs
- CodeCompiler.cs
- DeviceContexts.cs
- WmpBitmapEncoder.cs
- NodeInfo.cs
- OleDbTransaction.cs
- CharEnumerator.cs
- TrayIconDesigner.cs
- ShaderRenderModeValidation.cs
- HttpApplicationFactory.cs
- OutputScopeManager.cs
- Popup.cs
- Part.cs
- Stackframe.cs
- codemethodreferenceexpression.cs
- OdbcConnectionFactory.cs
- DataGridViewTextBoxColumn.cs
- ValueTypeFixupInfo.cs
- NavigationPropertyAccessor.cs
- DragStartedEventArgs.cs
- DockPatternIdentifiers.cs
- Polyline.cs
- DataGridTablesFactory.cs
- DefaultBindingPropertyAttribute.cs
- CqlQuery.cs
- HostnameComparisonMode.cs
- HwndSourceKeyboardInputSite.cs
- DXD.cs
- OrderByQueryOptionExpression.cs
- PerspectiveCamera.cs
- MemoryRecordBuffer.cs
- ParseElementCollection.cs
- ListCardsInFileRequest.cs
- login.cs
- SqlRecordBuffer.cs
- ResponseStream.cs
- TableCellCollection.cs
- RealizationDrawingContextWalker.cs
- RulePatternOps.cs
- BypassElement.cs
- StyleTypedPropertyAttribute.cs
- ImageFormatConverter.cs
- TypeConverterHelper.cs
- Bitmap.cs
- AuthenticationConfig.cs
- KnownBoxes.cs
- ArithmeticException.cs
- InlineCollection.cs
- CacheForPrimitiveTypes.cs
- ListBoxItem.cs
- ExceptionDetail.cs
- DecimalAnimationBase.cs
- SecurityPermission.cs
- Misc.cs
- LocalizedNameDescriptionPair.cs
- _ConnectionGroup.cs
- SoapSchemaMember.cs
- Normalization.cs
- PixelShader.cs
- ComponentRenameEvent.cs
- ApplicationContext.cs
- ColorConvertedBitmap.cs
- HtmlInputFile.cs
- CommunicationException.cs
- TripleDESCryptoServiceProvider.cs
- ProjectionPruner.cs
- CustomCategoryAttribute.cs
- InheritedPropertyChangedEventArgs.cs
- AlignmentYValidation.cs
- RC2.cs
- DataSourceDescriptorCollection.cs
- serverconfig.cs
- TextTrailingWordEllipsis.cs
- File.cs
- NullableDecimalSumAggregationOperator.cs
- RemotingServices.cs
- DefinitionBase.cs
- OutputCacheProfileCollection.cs