Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Net / System / Net / Sockets / LingerOption.cs / 1 / LingerOption.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Sockets { using System; ////// public class LingerOption { bool enabled; int lingerTime; ///Contains information for a socket's linger time, the amount of time it will /// remain after closing if data remains to be sent. ////// public LingerOption(bool enable, int seconds) { Enabled = enable; LingerTime = seconds; } ////// Initializes a new instance of the ///class. /// /// public bool Enabled { get { return enabled; } set { enabled = value; } } ////// Enables or disables lingering after /// close. /// ////// public int LingerTime { get { return lingerTime; } set { lingerTime = value; } } } // class LingerOption } // namespace System.Net.Sockets // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// The amount of time, in seconds, to remain connected after a close. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Sockets { using System; ////// public class LingerOption { bool enabled; int lingerTime; ///Contains information for a socket's linger time, the amount of time it will /// remain after closing if data remains to be sent. ////// public LingerOption(bool enable, int seconds) { Enabled = enable; LingerTime = seconds; } ////// Initializes a new instance of the ///class. /// /// public bool Enabled { get { return enabled; } set { enabled = value; } } ////// Enables or disables lingering after /// close. /// ////// public int LingerTime { get { return lingerTime; } set { lingerTime = value; } } } // class LingerOption } // namespace System.Net.Sockets // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// The amount of time, in seconds, to remain connected after a close. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OracleRowUpdatingEventArgs.cs
- DataGridHelper.cs
- PositiveTimeSpanValidatorAttribute.cs
- UserControlCodeDomTreeGenerator.cs
- SelectionUIService.cs
- TrackBarRenderer.cs
- Accessors.cs
- ModifyActivitiesPropertyDescriptor.cs
- TogglePatternIdentifiers.cs
- WindowsListViewItemStartMenu.cs
- MenuRenderer.cs
- mil_commands.cs
- XmlUtf8RawTextWriter.cs
- FontStretches.cs
- LOSFormatter.cs
- SecureUICommand.cs
- FullTextLine.cs
- PropertyStore.cs
- ResourceExpressionEditor.cs
- Compress.cs
- XmlProcessingInstruction.cs
- DataGridViewCellEventArgs.cs
- ScriptResourceInfo.cs
- ChildDocumentBlock.cs
- SrgsGrammarCompiler.cs
- ChannelManager.cs
- ScriptResourceHandler.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ListViewItemEventArgs.cs
- ContextMenuStrip.cs
- WorkflowViewStateService.cs
- DrawingDrawingContext.cs
- SQLConvert.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- BitArray.cs
- Padding.cs
- HashCodeCombiner.cs
- LineMetrics.cs
- GlyphRunDrawing.cs
- CompositionAdorner.cs
- ToolBarButtonClickEvent.cs
- ListDataBindEventArgs.cs
- TextBoxRenderer.cs
- PaintEvent.cs
- GlobalEventManager.cs
- Evidence.cs
- HtmlHead.cs
- EditorZoneBase.cs
- DataServiceRequest.cs
- NativeMethods.cs
- XmlUnspecifiedAttribute.cs
- ErrorView.xaml.cs
- DbParameterHelper.cs
- wmiprovider.cs
- DataGridViewSelectedRowCollection.cs
- ComplexPropertyEntry.cs
- RowVisual.cs
- FontNamesConverter.cs
- LineSegment.cs
- SqlFlattener.cs
- XamlInt32CollectionSerializer.cs
- DataGridLinkButton.cs
- WebPartVerbsEventArgs.cs
- TextRenderingModeValidation.cs
- PackageDigitalSignatureManager.cs
- IisTraceWebEventProvider.cs
- Baml2006Reader.cs
- FocusWithinProperty.cs
- InvalidFilterCriteriaException.cs
- RtfFormatStack.cs
- XamlStyleSerializer.cs
- ProjectionPathBuilder.cs
- FileChangesMonitor.cs
- _CookieModule.cs
- DictionaryTraceRecord.cs
- WebContext.cs
- AlternationConverter.cs
- FlowDocumentReader.cs
- ServiceDescription.cs
- AppDomainAttributes.cs
- GeneratedCodeAttribute.cs
- MsmqHostedTransportManager.cs
- XmlMemberMapping.cs
- PrinterUnitConvert.cs
- ReachDocumentReferenceSerializer.cs
- WebMessageEncoderFactory.cs
- SelectingProviderEventArgs.cs
- InterleavedZipPartStream.cs
- DrawingVisual.cs
- DocumentViewer.cs
- DataViewSetting.cs
- ClientUIRequest.cs
- FileLogRecordStream.cs
- WebPartVerb.cs
- SqlUDTStorage.cs
- SecurityDescriptor.cs
- CodeArrayCreateExpression.cs
- LinkedResourceCollection.cs
- UpdateDelegates.Generated.cs
- NamespaceDisplayAutomationPeer.cs