Code:
/ 4.0 / 4.0 / 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.] ///// 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
- RefreshPropertiesAttribute.cs
- PersianCalendar.cs
- ToolStripPanel.cs
- MetadataCollection.cs
- DBNull.cs
- MediaScriptCommandRoutedEventArgs.cs
- PeerNameRegistration.cs
- FixedSOMGroup.cs
- WmlLinkAdapter.cs
- ADMembershipUser.cs
- Predicate.cs
- ReachUIElementCollectionSerializer.cs
- HtmlShimManager.cs
- Control.cs
- GenericUI.cs
- _RegBlobWebProxyDataBuilder.cs
- StorageMappingItemLoader.cs
- DrawItemEvent.cs
- TableLayoutCellPaintEventArgs.cs
- HttpApplication.cs
- SessionStateUtil.cs
- _SSPIWrapper.cs
- ErrorWrapper.cs
- BitmapScalingModeValidation.cs
- GridViewRowCollection.cs
- ToolTip.cs
- QueryPageSettingsEventArgs.cs
- APCustomTypeDescriptor.cs
- DbConnectionPoolGroup.cs
- AuthenticationModuleElement.cs
- FileAccessException.cs
- FrameworkContentElement.cs
- ServerValidateEventArgs.cs
- MasterPageParser.cs
- XmlSchemaObjectCollection.cs
- VariableValue.cs
- Models.cs
- UnsafeNativeMethods.cs
- smtpconnection.cs
- StructuredTypeEmitter.cs
- CollectionViewSource.cs
- Pair.cs
- Binding.cs
- RegexStringValidatorAttribute.cs
- TreeNodeCollectionEditorDialog.cs
- ReaderWriterLockWrapper.cs
- AuthenticationService.cs
- DataGridViewCheckBoxColumn.cs
- DataGridRowHeaderAutomationPeer.cs
- ExpressionConverter.cs
- DataContractJsonSerializerOperationFormatter.cs
- RelativeSource.cs
- ConfigurationManagerInternal.cs
- SqlSelectClauseBuilder.cs
- TableHeaderCell.cs
- PropertyOverridesTypeEditor.cs
- InlineCollection.cs
- CustomPopupPlacement.cs
- PropertyGeneratedEventArgs.cs
- MarginsConverter.cs
- CopyEncoder.cs
- RIPEMD160.cs
- DrawingServices.cs
- CacheChildrenQuery.cs
- XsltException.cs
- SoapElementAttribute.cs
- SpeakInfo.cs
- Rotation3DAnimation.cs
- InstanceData.cs
- SHA384Cng.cs
- ObjectItemCollection.cs
- ContextMenuAutomationPeer.cs
- CookielessHelper.cs
- AliasGenerator.cs
- ActivityTrace.cs
- PasswordRecoveryDesigner.cs
- ObjectListTitleAttribute.cs
- DragStartedEventArgs.cs
- QueryExpression.cs
- DatatypeImplementation.cs
- _BufferOffsetSize.cs
- DashStyles.cs
- LazyLoadBehavior.cs
- OutputCacheSection.cs
- ToolStripItemDataObject.cs
- SqlReorderer.cs
- DataGridColumnCollectionEditor.cs
- _HeaderInfo.cs
- DependentList.cs
- HyperLinkField.cs
- _FixedSizeReader.cs
- WinEventTracker.cs
- IncomingWebRequestContext.cs
- CollectionDataContract.cs
- Zone.cs
- CommandValueSerializer.cs
- EventManager.cs
- CroppedBitmap.cs
- ComplexObject.cs
- PointLightBase.cs