Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ContainerUtilities.cs
- ImportContext.cs
- TreeViewDesigner.cs
- CardSpacePolicyElement.cs
- ValueTypeFixupInfo.cs
- AssemblyAttributes.cs
- MemberExpression.cs
- Timeline.cs
- VisualProxy.cs
- XmlBindingWorker.cs
- SecurityElement.cs
- ReaderContextStackData.cs
- XamlVector3DCollectionSerializer.cs
- AtomMaterializer.cs
- FreeFormDesigner.cs
- HttpStreamFormatter.cs
- StrokeCollectionConverter.cs
- SqlBooleanMismatchVisitor.cs
- GridErrorDlg.cs
- FileDetails.cs
- EventSinkHelperWriter.cs
- WizardForm.cs
- PageThemeParser.cs
- BulletChrome.cs
- ValidatedControlConverter.cs
- WebAdminConfigurationHelper.cs
- EventProviderClassic.cs
- Script.cs
- SourceFileInfo.cs
- DataException.cs
- LambdaCompiler.Statements.cs
- MetadataCacheItem.cs
- ControlEvent.cs
- QilVisitor.cs
- KnownColorTable.cs
- BindingContext.cs
- QilList.cs
- DefaultPrintController.cs
- SecurityHelper.cs
- SmiMetaData.cs
- ConnectionInterfaceCollection.cs
- SafeProcessHandle.cs
- ExpressionsCollectionConverter.cs
- smtppermission.cs
- TypeNameParser.cs
- DataServiceRequestOfT.cs
- BlurEffect.cs
- diagnosticsswitches.cs
- ApplicationException.cs
- AssociationSet.cs
- OleDbFactory.cs
- GenerateHelper.cs
- PerspectiveCamera.cs
- XslAstAnalyzer.cs
- SystemThemeKey.cs
- ObjectDataSourceChooseTypePanel.cs
- InputScopeNameConverter.cs
- SystemDiagnosticsSection.cs
- RefreshPropertiesAttribute.cs
- Matrix.cs
- ModuleElement.cs
- RegexGroupCollection.cs
- Compiler.cs
- ListenerElementsCollection.cs
- PropertyChangedEventArgs.cs
- TextLineBreak.cs
- ToolStripDropDownMenu.cs
- RuntimeWrappedException.cs
- Endpoint.cs
- StringUtil.cs
- SessionState.cs
- ClientApiGenerator.cs
- TaiwanLunisolarCalendar.cs
- InvalidEnumArgumentException.cs
- SpecialNameAttribute.cs
- GetMemberBinder.cs
- LocalBuilder.cs
- ColorConverter.cs
- XmlMemberMapping.cs
- CodePrimitiveExpression.cs
- SmtpFailedRecipientException.cs
- RoleManagerModule.cs
- Propagator.Evaluator.cs
- DeploymentSectionCache.cs
- GB18030Encoding.cs
- columnmapfactory.cs
- TableLayoutRowStyleCollection.cs
- Wildcard.cs
- BitmapEffectGroup.cs
- ContentElementAutomationPeer.cs
- RandomNumberGenerator.cs
- XmlAnyAttributeAttribute.cs
- UxThemeWrapper.cs
- DataGridViewCellLinkedList.cs
- DependencyPropertyKey.cs
- WSSecureConversation.cs
- FixedSOMElement.cs
- XmlBinaryReader.cs
- ExecutionEngineException.cs
- PositiveTimeSpanValidatorAttribute.cs