Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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
- IPeerNeighbor.cs
- PermissionSet.cs
- ApplicationServiceHelper.cs
- BinaryParser.cs
- StatusBarAutomationPeer.cs
- VersionedStreamOwner.cs
- IndexOutOfRangeException.cs
- XmlILAnnotation.cs
- DataServices.cs
- CapabilitiesRule.cs
- WebColorConverter.cs
- ColorKeyFrameCollection.cs
- DesignerExtenders.cs
- DbConnectionHelper.cs
- PageAction.cs
- MiniAssembly.cs
- TypeUtils.cs
- ToolStripSettings.cs
- TemplateApplicationHelper.cs
- GlobalProxySelection.cs
- HyperLinkStyle.cs
- processwaithandle.cs
- CodeLabeledStatement.cs
- ListViewHitTestInfo.cs
- QuotedPrintableStream.cs
- CodeTypeMember.cs
- XmlSchemaSequence.cs
- Enlistment.cs
- StorageMappingItemLoader.cs
- DataGridViewColumnHeaderCell.cs
- TextFormatterHost.cs
- IsolatedStoragePermission.cs
- CachedRequestParams.cs
- ZipPackage.cs
- DCSafeHandle.cs
- UpDownBase.cs
- Decoder.cs
- ProfileGroupSettings.cs
- ActivationProxy.cs
- HttpListenerException.cs
- SafePointer.cs
- DesignerInterfaces.cs
- SettingsBase.cs
- ScrollItemProviderWrapper.cs
- ReferenceConverter.cs
- FocusManager.cs
- ContentElement.cs
- PrintControllerWithStatusDialog.cs
- LinearGradientBrush.cs
- ErrorsHelper.cs
- TextEditorLists.cs
- MdImport.cs
- ALinqExpressionVisitor.cs
- Point.cs
- FrugalList.cs
- TaskHelper.cs
- PageAdapter.cs
- SmiEventStream.cs
- DelegateTypeInfo.cs
- RuntimeHelpers.cs
- DynamicObjectAccessor.cs
- StorageAssociationTypeMapping.cs
- AutomationElement.cs
- GridViewColumnHeaderAutomationPeer.cs
- GrammarBuilder.cs
- CustomErrorsSection.cs
- ComPersistableTypeElementCollection.cs
- WebPartZoneBase.cs
- SqlTransaction.cs
- ProfileGroupSettings.cs
- HelpEvent.cs
- ExtenderProvidedPropertyAttribute.cs
- InstanceDescriptor.cs
- ValueTypeFixupInfo.cs
- UnhandledExceptionEventArgs.cs
- FontConverter.cs
- AnonymousIdentificationModule.cs
- DrawingGroup.cs
- XmlDataCollection.cs
- Interlocked.cs
- LineInfo.cs
- StoreContentChangedEventArgs.cs
- ThreadStaticAttribute.cs
- ItemMap.cs
- smtppermission.cs
- ValidationRule.cs
- Camera.cs
- StreamingContext.cs
- _NegoState.cs
- ModelPropertyCollectionImpl.cs
- XPathBuilder.cs
- CurrentTimeZone.cs
- Rijndael.cs
- ContentTextAutomationPeer.cs
- PerformanceCounterPermissionEntry.cs
- DataGridViewHitTestInfo.cs
- _ListenerRequestStream.cs
- Simplifier.cs
- URLMembershipCondition.cs
- _NegotiateClient.cs