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
- XmlNodeChangedEventArgs.cs
- PreviewPrintController.cs
- HtmlInputCheckBox.cs
- EncryptedData.cs
- PrtCap_Reader.cs
- FontStretchConverter.cs
- SeparatorAutomationPeer.cs
- OAVariantLib.cs
- ConfigXmlSignificantWhitespace.cs
- UnsafeNativeMethodsPenimc.cs
- DataGridViewAutoSizeModeEventArgs.cs
- RawStylusInputCustomDataList.cs
- HMAC.cs
- SurrogateSelector.cs
- RawKeyboardInputReport.cs
- AncestorChangedEventArgs.cs
- PointConverter.cs
- InputReferenceExpression.cs
- DispatcherExceptionEventArgs.cs
- HuffmanTree.cs
- CompensationHandlingFilter.cs
- recordstatescratchpad.cs
- ToolboxComponentsCreatingEventArgs.cs
- Timer.cs
- CustomErrorCollection.cs
- WebServiceData.cs
- Cloud.cs
- ListenerUnsafeNativeMethods.cs
- UriSectionData.cs
- ThrowHelper.cs
- DataGridItem.cs
- TextWriter.cs
- _SSPIWrapper.cs
- ClientScriptItem.cs
- HeaderCollection.cs
- LinkTarget.cs
- ListBox.cs
- ValidationSummary.cs
- ProxyWebPart.cs
- NetMsmqBinding.cs
- Operator.cs
- TransactionManager.cs
- DirectionalAction.cs
- AccessDataSourceView.cs
- DispatcherHookEventArgs.cs
- Line.cs
- TemplateKey.cs
- DateTimeConstantAttribute.cs
- ClientFactory.cs
- EntityDataSourceContextCreatedEventArgs.cs
- IDispatchConstantAttribute.cs
- ExceptionUtil.cs
- EvidenceTypeDescriptor.cs
- RoutedEventHandlerInfo.cs
- HtmlWindowCollection.cs
- AttributeEmitter.cs
- UrlParameterWriter.cs
- DataGridViewImageCell.cs
- FormViewInsertEventArgs.cs
- PixelShader.cs
- Decoder.cs
- VideoDrawing.cs
- Accessors.cs
- ItemChangedEventArgs.cs
- GridToolTip.cs
- basecomparevalidator.cs
- SchemaElementLookUpTable.cs
- Span.cs
- EntityDataSourceSelectingEventArgs.cs
- BrowserDefinitionCollection.cs
- TextRenderingModeValidation.cs
- SharedUtils.cs
- HeaderedContentControl.cs
- ValueOfAction.cs
- ApplicationSecurityManager.cs
- CertificateReferenceElement.cs
- UnaryOperationBinder.cs
- EncoderExceptionFallback.cs
- HttpRuntime.cs
- Group.cs
- SyncOperationState.cs
- AppendHelper.cs
- SettingsPropertyIsReadOnlyException.cs
- Expander.cs
- DefaultObjectMappingItemCollection.cs
- FormParameter.cs
- itemelement.cs
- InteropTrackingRecord.cs
- PropertyToken.cs
- HtmlInputPassword.cs
- WebBrowser.cs
- GPPOINTF.cs
- PropertyMapper.cs
- BackgroundFormatInfo.cs
- EventDescriptor.cs
- PrintPageEvent.cs
- CriticalFinalizerObject.cs
- AdRotator.cs
- XPathScanner.cs
- IssuedSecurityTokenParameters.cs