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
- PageThemeBuildProvider.cs
- MimeBasePart.cs
- TypeRefElement.cs
- FlowDocumentPaginator.cs
- DBPropSet.cs
- EntityReference.cs
- CustomValidator.cs
- ContextMenu.cs
- JavaScriptSerializer.cs
- ZipIOLocalFileHeader.cs
- State.cs
- FlowDocumentView.cs
- MessageQueuePermissionAttribute.cs
- FacetValueContainer.cs
- SystemUdpStatistics.cs
- TypeExtensionConverter.cs
- xdrvalidator.cs
- StringSorter.cs
- _NTAuthentication.cs
- CryptoSession.cs
- IsolationInterop.cs
- InstanceLockException.cs
- IntegrationExceptionEventArgs.cs
- PermissionToken.cs
- HttpListenerElement.cs
- SecurityUtils.cs
- HelpInfo.cs
- Soap.cs
- String.cs
- CompilerError.cs
- CapabilitiesState.cs
- BitmapSourceSafeMILHandle.cs
- DataGridViewColumnConverter.cs
- OrderPreservingMergeHelper.cs
- EndpointNameMessageFilter.cs
- RequestCacheValidator.cs
- TextParagraphProperties.cs
- ZipFileInfoCollection.cs
- SoapFormatterSinks.cs
- DisplayMemberTemplateSelector.cs
- HasCopySemanticsAttribute.cs
- SafeFileHandle.cs
- HttpModulesSection.cs
- ScaleTransform3D.cs
- NodeLabelEditEvent.cs
- InfoCardTraceRecord.cs
- WebPartUtil.cs
- StrokeNodeOperations.cs
- prefixendpointaddressmessagefiltertable.cs
- ActivationArguments.cs
- StringBuilder.cs
- DataGridBoolColumn.cs
- TdsParserHelperClasses.cs
- ModifierKeysConverter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- TreeNodeStyleCollection.cs
- EdmPropertyAttribute.cs
- ProvidersHelper.cs
- ParenthesizePropertyNameAttribute.cs
- Transaction.cs
- DesignTimeParseData.cs
- XmlTextReaderImpl.cs
- ReferencedType.cs
- SoapTypeAttribute.cs
- ClientBase.cs
- RtfToXamlLexer.cs
- NonNullItemCollection.cs
- diagnosticsswitches.cs
- DesignBinding.cs
- TextClipboardData.cs
- StringBlob.cs
- DataPagerField.cs
- CryptoStream.cs
- HttpDebugHandler.cs
- SchemaImporterExtensionElementCollection.cs
- SafeRightsManagementEnvironmentHandle.cs
- ZipIOModeEnforcingStream.cs
- ExpressionBuilder.cs
- ElementUtil.cs
- InstalledFontCollection.cs
- XhtmlBasicCommandAdapter.cs
- CounterSample.cs
- MappingMetadataHelper.cs
- ArrayHelper.cs
- BinaryUtilClasses.cs
- TableProviderWrapper.cs
- ReferenceConverter.cs
- CorrelationManager.cs
- RegexStringValidator.cs
- _TimerThread.cs
- ControlAdapter.cs
- SymmetricAlgorithm.cs
- DaylightTime.cs
- WmfPlaceableFileHeader.cs
- VariableDesigner.xaml.cs
- FormViewInsertEventArgs.cs
- AdRotatorDesigner.cs
- ToolStripContainerActionList.cs
- NameScopePropertyAttribute.cs
- FrameworkTextComposition.cs