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
- ToolStripPanelRow.cs
- DbConnectionFactory.cs
- GenericRootAutomationPeer.cs
- MatchAttribute.cs
- RegexCode.cs
- XMLUtil.cs
- EdmType.cs
- Figure.cs
- CompiledXpathExpr.cs
- FieldNameLookup.cs
- CustomErrorsSection.cs
- Stylesheet.cs
- EntityModelBuildProvider.cs
- SoapAttributes.cs
- QueryExpr.cs
- EFDataModelProvider.cs
- ControlEvent.cs
- TextServicesHost.cs
- WhitespaceRule.cs
- NotifyCollectionChangedEventArgs.cs
- TextTreeFixupNode.cs
- ellipse.cs
- RemoteHelper.cs
- HtmlInputSubmit.cs
- RectangleGeometry.cs
- XmlConvert.cs
- Focus.cs
- SafeProcessHandle.cs
- DragEventArgs.cs
- XmlSchemaDatatype.cs
- PageHandlerFactory.cs
- MessageRpc.cs
- CookieParameter.cs
- WindowsBrush.cs
- PropertyKey.cs
- StagingAreaInputItem.cs
- SqlTypeSystemProvider.cs
- DiscoveryReference.cs
- SelectionEditor.cs
- sqlcontext.cs
- EntityDataSourceValidationException.cs
- FunctionNode.cs
- IncrementalCompileAnalyzer.cs
- ToolStripSeparator.cs
- TypeDependencyAttribute.cs
- GifBitmapEncoder.cs
- ClientConfigurationSystem.cs
- Schema.cs
- WorkflowInstance.cs
- PropertyRecord.cs
- WebControlsSection.cs
- InternalSafeNativeMethods.cs
- HtmlFormWrapper.cs
- AppDomainUnloadedException.cs
- SqlAliasesReferenced.cs
- CodeNamespaceImportCollection.cs
- SerializationSectionGroup.cs
- FrameSecurityDescriptor.cs
- ProxyWebPartConnectionCollection.cs
- XmlComplianceUtil.cs
- SqlCacheDependencySection.cs
- ProjectionCamera.cs
- Stack.cs
- TextEditorTables.cs
- XmlWriterTraceListener.cs
- SmtpFailedRecipientsException.cs
- HttpBufferlessInputStream.cs
- CacheSection.cs
- InternalBufferOverflowException.cs
- Input.cs
- VerticalConnector.xaml.cs
- BrowserPolicyValidator.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- Attribute.cs
- FileDialogCustomPlace.cs
- HttpChannelBindingToken.cs
- WS2007HttpBinding.cs
- CodeConstructor.cs
- VolatileResourceManager.cs
- SchemaCompiler.cs
- CompilationUtil.cs
- SafeRightsManagementSessionHandle.cs
- ToggleProviderWrapper.cs
- GroupQuery.cs
- ExpressionBuilder.cs
- TypeTypeConverter.cs
- XmlSchemaComplexContentExtension.cs
- ChangePassword.cs
- CompositeDispatchFormatter.cs
- UITypeEditor.cs
- XmlSchemaInferenceException.cs
- ExtendedPropertyDescriptor.cs
- SystemIcmpV6Statistics.cs
- RegisteredArrayDeclaration.cs
- MissingFieldException.cs
- WindowsContainer.cs
- Win32Native.cs
- GcHandle.cs
- ThreadAbortException.cs
- BitStack.cs