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
- SystemTcpStatistics.cs
- VariantWrapper.cs
- ContentPlaceHolder.cs
- NetTcpSection.cs
- FieldNameLookup.cs
- EntityDataSourceChangingEventArgs.cs
- ResourcePermissionBaseEntry.cs
- NetworkStream.cs
- RemoteWebConfigurationHostServer.cs
- TemplateControlParser.cs
- ExecutedRoutedEventArgs.cs
- DataGridTextBox.cs
- NativeMethods.cs
- ComAdminWrapper.cs
- CalculatedColumn.cs
- SignerInfo.cs
- TemplateControlCodeDomTreeGenerator.cs
- TextRangeProviderWrapper.cs
- SafeHandles.cs
- XmlElementCollection.cs
- WmlObjectListAdapter.cs
- ServiceModelReg.cs
- PKCS1MaskGenerationMethod.cs
- VirtualizedContainerService.cs
- FaultDesigner.cs
- ProviderManager.cs
- IssuedTokenServiceElement.cs
- FeatureSupport.cs
- ListViewSelectEventArgs.cs
- Contracts.cs
- SecurityKeyIdentifierClause.cs
- ColorConvertedBitmap.cs
- DrawingAttributeSerializer.cs
- NetMsmqSecurity.cs
- BidPrivateBase.cs
- XsltContext.cs
- ListBoxItem.cs
- RelatedImageListAttribute.cs
- PreviewPageInfo.cs
- EditBehavior.cs
- WebConfigurationFileMap.cs
- CodeCastExpression.cs
- EntityDataSourceChangingEventArgs.cs
- StylusPointProperty.cs
- PickDesigner.xaml.cs
- Pen.cs
- CallbackHandler.cs
- GlobalizationSection.cs
- StylusPointDescription.cs
- SystemBrushes.cs
- GridPatternIdentifiers.cs
- HasRunnableWorkflowEvent.cs
- CodeVariableDeclarationStatement.cs
- OrderByQueryOptionExpression.cs
- MenuItemBinding.cs
- NonClientArea.cs
- WebPartDeleteVerb.cs
- XmlFormatExtensionPointAttribute.cs
- SQLDouble.cs
- XamlVector3DCollectionSerializer.cs
- DataRowView.cs
- LogicalExpr.cs
- Events.cs
- SafeCoTaskMem.cs
- SystemIPInterfaceProperties.cs
- XslTransform.cs
- TagPrefixCollection.cs
- TypeConverterMarkupExtension.cs
- XmlProcessingInstruction.cs
- DrawingBrush.cs
- WebPartConnectionsConnectVerb.cs
- InsufficientMemoryException.cs
- LinqDataSourceHelper.cs
- CoreSwitches.cs
- XAMLParseException.cs
- AssemblyUtil.cs
- ManagedWndProcTracker.cs
- XmlDataDocument.cs
- RsaSecurityTokenAuthenticator.cs
- SerializableAttribute.cs
- StackSpiller.cs
- BookmarkOptionsHelper.cs
- EngineSite.cs
- ProgressBarHighlightConverter.cs
- DataGridTextBoxColumn.cs
- StateBag.cs
- TdsValueSetter.cs
- MaxMessageSizeStream.cs
- StructuralObject.cs
- EarlyBoundInfo.cs
- CallContext.cs
- DocumentPageView.cs
- TerminatingOperationBehavior.cs
- ZipIOLocalFileHeader.cs
- OdbcException.cs
- SatelliteContractVersionAttribute.cs
- TextSimpleMarkerProperties.cs
- AnnotationStore.cs
- DelegateSerializationHolder.cs
- SmiRecordBuffer.cs