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
- TemplatePropertyEntry.cs
- DiscoveryOperationContextExtension.cs
- SchemaCollectionCompiler.cs
- SqlTypesSchemaImporter.cs
- WebHttpSecurity.cs
- TrimSurroundingWhitespaceAttribute.cs
- SpeechEvent.cs
- PointConverter.cs
- ApplicationId.cs
- XMLDiffLoader.cs
- DispatcherTimer.cs
- InstancePersistenceCommand.cs
- Run.cs
- InternalSafeNativeMethods.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- Stylesheet.cs
- DefaultMemberAttribute.cs
- ResXDataNode.cs
- ScrollableControl.cs
- BuildProviderCollection.cs
- UniqueCodeIdentifierScope.cs
- MethodExpression.cs
- RoutedEventValueSerializer.cs
- CompoundFileDeflateTransform.cs
- HttpConfigurationContext.cs
- EntityDataSource.cs
- DataSourceCacheDurationConverter.cs
- ListViewDeletedEventArgs.cs
- CellConstantDomain.cs
- TimerTable.cs
- CatalogPart.cs
- MenuScrollingVisibilityConverter.cs
- DataGridViewRowStateChangedEventArgs.cs
- dbenumerator.cs
- BufferBuilder.cs
- AsymmetricKeyExchangeDeformatter.cs
- CreatingCookieEventArgs.cs
- StrokeNode.cs
- SchemaConstraints.cs
- RSAProtectedConfigurationProvider.cs
- BrowserCapabilitiesFactoryBase.cs
- DataGridViewEditingControlShowingEventArgs.cs
- CellNormalizer.cs
- XmlDictionary.cs
- DbFunctionCommandTree.cs
- GPRECT.cs
- MemberPath.cs
- XmlSchemaDocumentation.cs
- ConfigurationLocationCollection.cs
- SamlSubject.cs
- LinearKeyFrames.cs
- ToolStripDesignerAvailabilityAttribute.cs
- FontCacheUtil.cs
- PartialCachingAttribute.cs
- ActivityIdHeader.cs
- BinaryObjectInfo.cs
- HtmlValidatorAdapter.cs
- objectresult_tresulttype.cs
- OwnerDrawPropertyBag.cs
- Bidi.cs
- ProviderException.cs
- StreamGeometry.cs
- CompositeScriptReferenceEventArgs.cs
- StorageEntityTypeMapping.cs
- CompoundFileReference.cs
- VerificationAttribute.cs
- PageScaling.cs
- StickyNoteAnnotations.cs
- RequestQueryParser.cs
- SqlCommand.cs
- PrintPreviewControl.cs
- ImportOptions.cs
- SByte.cs
- ServicePrincipalNameElement.cs
- SqlCacheDependency.cs
- NetStream.cs
- DateTimeStorage.cs
- CodeMemberField.cs
- ConsumerConnectionPointCollection.cs
- FloaterParagraph.cs
- HttpHandlersSection.cs
- WebColorConverter.cs
- AddInServer.cs
- SQLDecimal.cs
- WebEventTraceProvider.cs
- XmlAttributeCache.cs
- FindSimilarActivitiesVerb.cs
- XmlSchemaComplexContentExtension.cs
- AccessViolationException.cs
- EnumerableRowCollectionExtensions.cs
- LineServicesCallbacks.cs
- DataRecordObjectView.cs
- RequiredFieldValidator.cs
- XmlException.cs
- SmtpMail.cs
- NodeFunctions.cs
- DefaultWorkflowTransactionService.cs
- SiteMembershipCondition.cs
- DefaultSection.cs
- CommandDevice.cs