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
- xamlnodes.cs
- QueryServiceConfigHandle.cs
- ChineseLunisolarCalendar.cs
- TextDecoration.cs
- MethodBuilderInstantiation.cs
- UriTemplateMatch.cs
- BevelBitmapEffect.cs
- TextTreeTextElementNode.cs
- AuthenticationService.cs
- EventProviderClassic.cs
- PointAnimation.cs
- InstanceHandleConflictException.cs
- SoapAttributeAttribute.cs
- Win32SafeHandles.cs
- ScriptingWebServicesSectionGroup.cs
- DoubleLinkListEnumerator.cs
- _HeaderInfoTable.cs
- XamlFigureLengthSerializer.cs
- WebPermission.cs
- DropShadowEffect.cs
- NonParentingControl.cs
- PageCatalogPart.cs
- TextEvent.cs
- HtmlInputText.cs
- FormClosingEvent.cs
- FixedMaxHeap.cs
- ReadOnlyHierarchicalDataSource.cs
- ToolBar.cs
- WebPartExportVerb.cs
- EventMappingSettingsCollection.cs
- ReadOnlyDictionary.cs
- NaturalLanguageHyphenator.cs
- DisplayNameAttribute.cs
- Substitution.cs
- StreamGeometryContext.cs
- cookiecontainer.cs
- ComplexObject.cs
- WindowsGraphics2.cs
- BrowserCapabilitiesFactory.cs
- CapabilitiesAssignment.cs
- CertificateReferenceElement.cs
- CodeVariableDeclarationStatement.cs
- SqlDataSourceView.cs
- ReadOnlyCollectionBase.cs
- Selection.cs
- ColumnWidthChangedEvent.cs
- ComponentChangedEvent.cs
- XMLSchema.cs
- X509CertificateRecipientClientCredential.cs
- Adorner.cs
- SqlCaseSimplifier.cs
- TablePattern.cs
- GridViewEditEventArgs.cs
- RectAnimationClockResource.cs
- Ref.cs
- TableLayoutPanelCellPosition.cs
- ServiceNameElement.cs
- TrackBarRenderer.cs
- GraphicsState.cs
- TextRangeSerialization.cs
- InternalCache.cs
- XmlBaseReader.cs
- HTMLTextWriter.cs
- SiteMapProvider.cs
- RuntimeConfig.cs
- QuaternionAnimationBase.cs
- XmlStringTable.cs
- ConstraintStruct.cs
- XMLDiffLoader.cs
- InputBindingCollection.cs
- SqlConnectionString.cs
- LinkClickEvent.cs
- LayoutTable.cs
- GAC.cs
- CloudCollection.cs
- ScriptingAuthenticationServiceSection.cs
- AudioFormatConverter.cs
- VideoDrawing.cs
- X509Utils.cs
- Identifier.cs
- EnumDataContract.cs
- MessageBox.cs
- EventManager.cs
- HttpModuleCollection.cs
- GridView.cs
- PageParserFilter.cs
- AlignmentYValidation.cs
- FileRecordSequence.cs
- Point3DCollectionValueSerializer.cs
- PreservationFileReader.cs
- RequestNavigateEventArgs.cs
- SetStoryboardSpeedRatio.cs
- Cursor.cs
- FileClassifier.cs
- LabelEditEvent.cs
- RadioButtonRenderer.cs
- GridViewColumnHeader.cs
- Opcode.cs
- Rectangle.cs
- SiteMapNodeCollection.cs