Code:
/ FX-1434 / FX-1434 / 1.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
- TcpTransportSecurity.cs
- PathStreamGeometryContext.cs
- RTLAwareMessageBox.cs
- SoapExtensionImporter.cs
- LogArchiveSnapshot.cs
- InstanceCreationEditor.cs
- PeerMessageDispatcher.cs
- HttpBindingExtension.cs
- DesignerLoader.cs
- MultiPropertyDescriptorGridEntry.cs
- Process.cs
- DesignerCommandSet.cs
- TraceInternal.cs
- Attribute.cs
- SqlMethods.cs
- TraceUtility.cs
- StorageInfo.cs
- DataGridViewImageColumn.cs
- StandardCommandToolStripMenuItem.cs
- PanelStyle.cs
- NameValueCollection.cs
- AutomationElement.cs
- RemoteHelper.cs
- XmlRawWriterWrapper.cs
- DecoderReplacementFallback.cs
- PageWrapper.cs
- FontSizeConverter.cs
- GrammarBuilderDictation.cs
- XmlStreamNodeWriter.cs
- WorkflowEventArgs.cs
- ExecutionEngineException.cs
- TemplateEditingVerb.cs
- DefinitionBase.cs
- CodeStatement.cs
- JavaScriptObjectDeserializer.cs
- InteropAutomationProvider.cs
- DispatcherHookEventArgs.cs
- TitleStyle.cs
- COM2TypeInfoProcessor.cs
- ParameterCollection.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- OpacityConverter.cs
- QueryRewriter.cs
- SharedStatics.cs
- AccessibleObject.cs
- RequestResizeEvent.cs
- LinqDataSourceValidationException.cs
- CodeDirectiveCollection.cs
- UniqueEventHelper.cs
- IfJoinedCondition.cs
- InfoCardUIAgent.cs
- SmiConnection.cs
- GeneratedView.cs
- DictionarySectionHandler.cs
- HttpWebResponse.cs
- HandoffBehavior.cs
- ToolStripDropDownButton.cs
- TableColumn.cs
- FontFamilyValueSerializer.cs
- ObjectAnimationUsingKeyFrames.cs
- MsmqTransportSecurity.cs
- RTLAwareMessageBox.cs
- RelatedEnd.cs
- Wizard.cs
- WebBrowserSiteBase.cs
- UIHelper.cs
- TextServicesDisplayAttributePropertyRanges.cs
- MasterPageParser.cs
- IconBitmapDecoder.cs
- BitmapVisualManager.cs
- SymmetricKeyWrap.cs
- SQLResource.cs
- MultiPropertyDescriptorGridEntry.cs
- StringHelper.cs
- UnsafeMethods.cs
- ResourceDefaultValueAttribute.cs
- EpmSyndicationContentDeSerializer.cs
- TextRangeBase.cs
- PeerOutputChannel.cs
- ZipIOLocalFileHeader.cs
- ArglessEventHandlerProxy.cs
- panel.cs
- SimpleModelProvider.cs
- UniqueEventHelper.cs
- StateMachineWorkflowDesigner.cs
- XmlQueryContext.cs
- Color.cs
- VariantWrapper.cs
- StrongNameUtility.cs
- ServiceHttpModule.cs
- ServiceSecurityContext.cs
- OwnerDrawPropertyBag.cs
- CategoryAttribute.cs
- PhysicalFontFamily.cs
- SqlMethods.cs
- IriParsingElement.cs
- PagerSettings.cs
- ToolBar.cs
- DataGridViewCellEventArgs.cs
- EventLogConfiguration.cs