Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / NetworkInformationException.cs / 1305376 / 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SequenceDesignerAccessibleObject.cs
- Scene3D.cs
- TextServicesLoader.cs
- VectorValueSerializer.cs
- X509Certificate2Collection.cs
- TouchEventArgs.cs
- SqlRewriteScalarSubqueries.cs
- Certificate.cs
- FacetValues.cs
- BitmapEncoder.cs
- QilBinary.cs
- ChoiceConverter.cs
- BoundPropertyEntry.cs
- BinHexEncoder.cs
- InfiniteTimeSpanConverter.cs
- HttpServerVarsCollection.cs
- SQLBinary.cs
- PersianCalendar.cs
- Rect3D.cs
- DesignerAttribute.cs
- EndpointDispatcher.cs
- RegisteredHiddenField.cs
- RemotingSurrogateSelector.cs
- WebFormDesignerActionService.cs
- ClientUIRequest.cs
- MdiWindowListStrip.cs
- CurrencyWrapper.cs
- Flattener.cs
- AttributedMetaModel.cs
- ConfigurationLocationCollection.cs
- MetadataCache.cs
- SqlReorderer.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- SkipQueryOptionExpression.cs
- GlyphRunDrawing.cs
- SpecularMaterial.cs
- RegexCompilationInfo.cs
- xmlsaver.cs
- HttpWebRequest.cs
- XslAstAnalyzer.cs
- FlowchartSizeFeature.cs
- DesignerDataParameter.cs
- Line.cs
- TextSpanModifier.cs
- ApplicationInfo.cs
- XmlSchemaSequence.cs
- XmlSchemaParticle.cs
- WebPartsSection.cs
- ObjectHandle.cs
- TextTreeInsertElementUndoUnit.cs
- dtdvalidator.cs
- ColorTransform.cs
- Currency.cs
- FrameworkTextComposition.cs
- SymbolType.cs
- PngBitmapDecoder.cs
- Int32KeyFrameCollection.cs
- ListViewTableRow.cs
- PersonalizationProviderHelper.cs
- RawStylusActions.cs
- XmlSchemaProviderAttribute.cs
- XPathParser.cs
- CredentialSelector.cs
- ListViewDataItem.cs
- ExpiredSecurityTokenException.cs
- UdpTransportBindingElement.cs
- ToolStripMenuItem.cs
- ContentPlaceHolder.cs
- Sentence.cs
- SamlSubject.cs
- TimeManager.cs
- ResourcePool.cs
- IncrementalCompileAnalyzer.cs
- LogWriteRestartAreaState.cs
- ContainerTracking.cs
- CompilerCollection.cs
- XmlToDatasetMap.cs
- EntityCommandExecutionException.cs
- RtfFormatStack.cs
- COMException.cs
- Evidence.cs
- AppSettingsReader.cs
- SelectionItemPattern.cs
- EndpointDispatcherTable.cs
- objectquery_tresulttype.cs
- XmlCharCheckingReader.cs
- ElasticEase.cs
- LowerCaseStringConverter.cs
- SchemaComplexType.cs
- DbDataRecord.cs
- ParameterElement.cs
- ByteRangeDownloader.cs
- TransformPattern.cs
- DataGridColumnStyleMappingNameEditor.cs
- RepeatBehavior.cs
- followingquery.cs
- DbProviderSpecificTypePropertyAttribute.cs
- IOThreadTimer.cs
- SimpleTypeResolver.cs
- TextRangeProviderWrapper.cs