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
- StringFreezingAttribute.cs
- SQLInt64.cs
- CrossAppDomainChannel.cs
- AnonymousIdentificationSection.cs
- DictionarySectionHandler.cs
- RemoteCryptoRsaServiceProvider.cs
- FtpWebResponse.cs
- PeerPresenceInfo.cs
- WebReferenceCollection.cs
- ActivationArguments.cs
- BrowserCapabilitiesFactory35.cs
- oledbmetadatacollectionnames.cs
- DBNull.cs
- ActivityExecutorDelegateInfo.cs
- AnimationClock.cs
- ProfilePropertySettings.cs
- AnonymousIdentificationSection.cs
- BufferBuilder.cs
- Bold.cs
- PrivilegeNotHeldException.cs
- Label.cs
- ExpressionDumper.cs
- BookmarkNameHelper.cs
- FieldBuilder.cs
- OleDbException.cs
- PageCatalogPartDesigner.cs
- BoundingRectTracker.cs
- RequestBringIntoViewEventArgs.cs
- ReflectionHelper.cs
- DSACryptoServiceProvider.cs
- AnnotationService.cs
- HttpCachePolicyElement.cs
- DPTypeDescriptorContext.cs
- PartitionedDataSource.cs
- SmtpNegotiateAuthenticationModule.cs
- TypeInfo.cs
- Accessible.cs
- EntityException.cs
- NumberFormatter.cs
- WorkflowTimerService.cs
- HttpListenerRequestUriBuilder.cs
- PointKeyFrameCollection.cs
- PreApplicationStartMethodAttribute.cs
- ModelTreeEnumerator.cs
- Zone.cs
- ReferenceEqualityComparer.cs
- Touch.cs
- TraceContextRecord.cs
- QueryResponse.cs
- DataTableCollection.cs
- ObjectRef.cs
- WinEventQueueItem.cs
- OdbcErrorCollection.cs
- Error.cs
- ListViewGroup.cs
- ToolStripHighContrastRenderer.cs
- unsafenativemethodsother.cs
- WebDisplayNameAttribute.cs
- BroadcastEventHelper.cs
- Visual3DCollection.cs
- TimeSpanValidator.cs
- AlternateViewCollection.cs
- TrackingLocationCollection.cs
- _SslStream.cs
- XmlIlGenerator.cs
- TimelineGroup.cs
- mediaeventshelper.cs
- ImageButton.cs
- InvalidDocumentContentsException.cs
- EntityDataSourceSelectingEventArgs.cs
- ThreadStateException.cs
- WmlObjectListAdapter.cs
- TransformValueSerializer.cs
- PageOutputColor.cs
- OpCellTreeNode.cs
- WebFormDesignerActionService.cs
- ElapsedEventArgs.cs
- MessageQueueException.cs
- NameNode.cs
- SoapWriter.cs
- ProfileInfo.cs
- BaseParaClient.cs
- EncoderParameter.cs
- NonSerializedAttribute.cs
- XMLDiffLoader.cs
- Main.cs
- WriteTimeStream.cs
- DayRenderEvent.cs
- ResourcePermissionBase.cs
- SpellerInterop.cs
- DataBoundControl.cs
- SafeProcessHandle.cs
- QilInvoke.cs
- XmlQueryType.cs
- ToolStripOverflow.cs
- TextDecoration.cs
- Site.cs
- FontFamily.cs
- ControlBindingsCollection.cs
- CodeConditionStatement.cs