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
- ImageSourceValueSerializer.cs
- AnnouncementInnerClient11.cs
- DataBindingCollectionConverter.cs
- BodyWriter.cs
- GregorianCalendarHelper.cs
- ProviderCommandInfoUtils.cs
- DocumentsTrace.cs
- ResourceDictionaryCollection.cs
- SystemTcpStatistics.cs
- Token.cs
- NameSpaceEvent.cs
- DesignerTransaction.cs
- HtmlInputFile.cs
- TraceRecord.cs
- ServiceXNameTypeConverter.cs
- AnnotationStore.cs
- Empty.cs
- Configuration.cs
- WorkflowOperationBehavior.cs
- EventHandlersStore.cs
- SecurityTokenException.cs
- TTSEngineTypes.cs
- EventTrigger.cs
- ColorMap.cs
- SecurityManager.cs
- DBSqlParserTableCollection.cs
- TextBlockAutomationPeer.cs
- DataGridViewRowStateChangedEventArgs.cs
- MessageHeaderT.cs
- Helpers.cs
- MaskedTextBoxTextEditor.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- FixedFlowMap.cs
- OdbcCommand.cs
- FtpCachePolicyElement.cs
- DataGridrowEditEndingEventArgs.cs
- ClientTarget.cs
- AccessedThroughPropertyAttribute.cs
- HostedTransportConfigurationManager.cs
- UnsafeNativeMethods.cs
- StatusBarAutomationPeer.cs
- ValidationResult.cs
- SamlConditions.cs
- Ref.cs
- PropertyIDSet.cs
- ColumnResizeUndoUnit.cs
- BindValidator.cs
- DataTable.cs
- WebPartCatalogAddVerb.cs
- ScriptBehaviorDescriptor.cs
- Underline.cs
- CustomPopupPlacement.cs
- PreservationFileReader.cs
- CodeDelegateCreateExpression.cs
- LayeredChannelFactory.cs
- StartFileNameEditor.cs
- ReadOnlyHierarchicalDataSource.cs
- ConfigurationStrings.cs
- SmtpMail.cs
- Button.cs
- DbConnectionPoolIdentity.cs
- EntryPointNotFoundException.cs
- QuaternionAnimationUsingKeyFrames.cs
- FixedTextPointer.cs
- ClosableStream.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- MessageProtectionOrder.cs
- SqlCharStream.cs
- DateTimeUtil.cs
- CfgParser.cs
- WeakReadOnlyCollection.cs
- RenderOptions.cs
- ClientSideProviderDescription.cs
- HtmlInputSubmit.cs
- Pair.cs
- WinEventHandler.cs
- BitmapEffectGroup.cs
- SecurityPermission.cs
- BitmapMetadata.cs
- VolatileEnlistmentMultiplexing.cs
- AxisAngleRotation3D.cs
- DataSourceNameHandler.cs
- ListBindingConverter.cs
- SqlVersion.cs
- ListViewItem.cs
- GridViewUpdatedEventArgs.cs
- SmtpReplyReader.cs
- HttpValueCollection.cs
- Rijndael.cs
- MouseCaptureWithinProperty.cs
- VectorAnimation.cs
- MachineKeySection.cs
- Context.cs
- FieldNameLookup.cs
- XmlQueryOutput.cs
- TextServicesLoader.cs
- ExitEventArgs.cs
- LifetimeServices.cs
- HttpResponseInternalWrapper.cs
- ListView.cs