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
- GiveFeedbackEventArgs.cs
- SqlConnectionHelper.cs
- PeerNameRecord.cs
- PropertyEntry.cs
- MissingMethodException.cs
- XmlJsonWriter.cs
- SiteMapNode.cs
- JsonObjectDataContract.cs
- AlignmentXValidation.cs
- Constraint.cs
- TextParagraphProperties.cs
- ObjectStateFormatter.cs
- EntityDataSourceValidationException.cs
- WebServiceParameterData.cs
- XmlStreamedByteStreamReader.cs
- ValueExpressions.cs
- GenericWebPart.cs
- LayoutTableCell.cs
- UiaCoreProviderApi.cs
- TransformerTypeCollection.cs
- HyperLinkColumn.cs
- XmlSchemaSimpleContent.cs
- UriTemplateMatch.cs
- DbReferenceCollection.cs
- GeneralTransform3DTo2D.cs
- WS2007HttpBindingElement.cs
- ArrayConverter.cs
- MatrixAnimationUsingPath.cs
- BrushMappingModeValidation.cs
- BaseTemplateParser.cs
- CLRBindingWorker.cs
- ScriptIgnoreAttribute.cs
- FormatterServices.cs
- Rect3DConverter.cs
- PreviewKeyDownEventArgs.cs
- SoapTypeAttribute.cs
- PartialClassGenerationTaskInternal.cs
- Common.cs
- DocumentPage.cs
- BaseInfoTable.cs
- AttributeAction.cs
- CryptoConfig.cs
- LassoSelectionBehavior.cs
- DefaultCompensation.cs
- XmlILModule.cs
- PeoplePickerWrapper.cs
- BamlVersionHeader.cs
- ActivityDesignerResources.cs
- DeclarativeCatalogPart.cs
- MenuItemCollection.cs
- RelationshipEndCollection.cs
- BindingListCollectionView.cs
- XmlDeclaration.cs
- Task.cs
- ConfigurationElement.cs
- ContextMenuService.cs
- CustomError.cs
- QuotedPrintableStream.cs
- JapaneseCalendar.cs
- WebPartTransformer.cs
- TypeTypeConverter.cs
- JoinQueryOperator.cs
- FilePresentation.cs
- PassportAuthenticationEventArgs.cs
- StylusPointPropertyUnit.cs
- PrivilegedConfigurationManager.cs
- XPathParser.cs
- SHA256Managed.cs
- HostedHttpTransportManager.cs
- RunWorkerCompletedEventArgs.cs
- IPCCacheManager.cs
- UndoManager.cs
- EnumType.cs
- RoleGroup.cs
- Stack.cs
- BitmapPalette.cs
- HighlightVisual.cs
- _HTTPDateParse.cs
- SimpleExpression.cs
- TextEditorTables.cs
- IHttpResponseInternal.cs
- StylusDownEventArgs.cs
- PathGeometry.cs
- UserUseLicenseDictionaryLoader.cs
- SmiEventStream.cs
- PipeStream.cs
- DataObjectSettingDataEventArgs.cs
- ResolvedKeyFrameEntry.cs
- DBSqlParserTable.cs
- StreamResourceInfo.cs
- RepeaterCommandEventArgs.cs
- XamlBrushSerializer.cs
- OutputWindow.cs
- DelayedRegex.cs
- Matrix.cs
- KnowledgeBase.cs
- Binding.cs
- BlockUIContainer.cs
- GroupBoxRenderer.cs
- ControlTemplate.cs