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
- ReliabilityContractAttribute.cs
- Schema.cs
- TextRange.cs
- EntityUtil.cs
- MouseActionValueSerializer.cs
- XamlRtfConverter.cs
- ComponentDispatcher.cs
- DataGridViewUtilities.cs
- SyndicationDeserializer.cs
- CustomLineCap.cs
- InfocardClientCredentials.cs
- PrintingPermission.cs
- DataSysAttribute.cs
- ObjectItemCollection.cs
- ContextStack.cs
- GrammarBuilderDictation.cs
- DeclaredTypeValidator.cs
- Journaling.cs
- ClockGroup.cs
- ComplexPropertyEntry.cs
- WebConfigurationFileMap.cs
- SchemaLookupTable.cs
- PrivateFontCollection.cs
- WebPartEditVerb.cs
- BaseCollection.cs
- BehaviorDragDropEventArgs.cs
- LabelInfo.cs
- ErrorFormatterPage.cs
- PocoEntityKeyStrategy.cs
- BitmapEffectDrawing.cs
- SendActivity.cs
- RequestResizeEvent.cs
- Automation.cs
- DataRecordInternal.cs
- SqlBuffer.cs
- RoutedEventArgs.cs
- DateTime.cs
- InternalControlCollection.cs
- ProfileEventArgs.cs
- EventHandlersDesigner.cs
- ConstraintCollection.cs
- EventLogException.cs
- SimpleBitVector32.cs
- SiteMapPath.cs
- Stream.cs
- SerialErrors.cs
- XmlTypeAttribute.cs
- DateTimeOffsetStorage.cs
- DynamicPropertyReader.cs
- TransformValueSerializer.cs
- Double.cs
- ApplicationCommands.cs
- SystemIPGlobalProperties.cs
- FileRegion.cs
- EntityDesignerDataSourceView.cs
- ConsoleKeyInfo.cs
- EmptyQuery.cs
- EntityContainerEmitter.cs
- DataGridColumnDropSeparator.cs
- CalloutQueueItem.cs
- SpecularMaterial.cs
- CreateSequence.cs
- XPathCompileException.cs
- ThreadAttributes.cs
- RuleSettingsCollection.cs
- EntityStoreSchemaFilterEntry.cs
- LinqDataSourceContextEventArgs.cs
- GatewayDefinition.cs
- RemotingAttributes.cs
- DropShadowEffect.cs
- ColumnResizeUndoUnit.cs
- XmlAnyElementAttributes.cs
- MarginCollapsingState.cs
- SchemaObjectWriter.cs
- Volatile.cs
- PtsContext.cs
- UITypeEditor.cs
- EditorAttribute.cs
- XmlTypeMapping.cs
- BindingExpression.cs
- IDictionary.cs
- DataGridViewTextBoxCell.cs
- EventSourceCreationData.cs
- BaseValidator.cs
- MessageBox.cs
- TextSelection.cs
- MachineSettingsSection.cs
- FixedTextBuilder.cs
- PnrpPermission.cs
- SQLConvert.cs
- XdrBuilder.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- WebHeaderCollection.cs
- XmlSchemaSimpleTypeUnion.cs
- UnsafeNativeMethods.cs
- CompressedStack.cs
- Hex.cs
- coordinatorscratchpad.cs
- PreProcessor.cs
- COMException.cs