Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Messaging / System / Messaging / ReceiveCompletedEventArgs.cs / 1305376 / ReceiveCompletedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.Diagnostics; using System; ////// /// public class ReceiveCompletedEventArgs : EventArgs { private IAsyncResult result; private Message message; private MessageQueue sender; ///Provides data for the ////// event. /// internal ReceiveCompletedEventArgs(MessageQueue sender, IAsyncResult result) { this.result = result; this.sender = sender; } /// /// /// public IAsyncResult AsyncResult { get { return this.result; } set { this.result = value; } } ///Contains the result of the asynchronous /// operation requested. ////// /// public Message Message { get { if (this.message == null) { try { this.message = this.sender.EndReceive(result); } catch { throw; } } return this.message; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //The end result of the posted asynchronous receive /// operation. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.Diagnostics; using System; ////// /// public class ReceiveCompletedEventArgs : EventArgs { private IAsyncResult result; private Message message; private MessageQueue sender; ///Provides data for the ////// event. /// internal ReceiveCompletedEventArgs(MessageQueue sender, IAsyncResult result) { this.result = result; this.sender = sender; } /// /// /// public IAsyncResult AsyncResult { get { return this.result; } set { this.result = value; } } ///Contains the result of the asynchronous /// operation requested. ////// /// public Message Message { get { if (this.message == null) { try { this.message = this.sender.EndReceive(result); } catch { throw; } } return this.message; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.The end result of the posted asynchronous receive /// operation. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CacheChildrenQuery.cs
- XmlElementList.cs
- SendSecurityHeader.cs
- IResourceProvider.cs
- LicenseProviderAttribute.cs
- HttpPostedFile.cs
- KoreanLunisolarCalendar.cs
- ComEventsInfo.cs
- XmlSchemaSubstitutionGroup.cs
- DataContractSerializerMessageContractImporter.cs
- CallbackException.cs
- ComponentEditorPage.cs
- SurrogateChar.cs
- QilSortKey.cs
- Odbc32.cs
- infer.cs
- SourceFileInfo.cs
- ClientSideQueueItem.cs
- LabelEditEvent.cs
- TranslateTransform.cs
- PropertyInfoSet.cs
- SQLSingle.cs
- AggregationMinMaxHelpers.cs
- FunctionOverloadResolver.cs
- MatrixUtil.cs
- DataSetUtil.cs
- DetailsViewPageEventArgs.cs
- FontStyleConverter.cs
- CodeTypeConstructor.cs
- PopupRoot.cs
- ErrorProvider.cs
- UserControlDesigner.cs
- FileDialogCustomPlacesCollection.cs
- EncryptedKeyIdentifierClause.cs
- CounterCreationDataConverter.cs
- SiteOfOriginContainer.cs
- InProcStateClientManager.cs
- ILGenerator.cs
- HttpCacheParams.cs
- MetadataUtil.cs
- ToolStripDropDownClosingEventArgs.cs
- _SSPISessionCache.cs
- Rect.cs
- TableHeaderCell.cs
- EnvelopedPkcs7.cs
- UnaryExpression.cs
- OrElse.cs
- GridView.cs
- Pipe.cs
- ObjectListCommand.cs
- StaticSiteMapProvider.cs
- SemanticValue.cs
- PublishLicense.cs
- ToolStripScrollButton.cs
- AppDomainUnloadedException.cs
- coordinatorfactory.cs
- ImageSourceConverter.cs
- HandleRef.cs
- TextEffect.cs
- TaskExceptionHolder.cs
- HttpListenerException.cs
- EntityChangedParams.cs
- WebPartsPersonalization.cs
- ThreadStartException.cs
- DispatcherTimer.cs
- EnumConverter.cs
- HtmlToClrEventProxy.cs
- SecurityToken.cs
- ProgressBarAutomationPeer.cs
- FontUnit.cs
- DomainConstraint.cs
- ReflectTypeDescriptionProvider.cs
- BigInt.cs
- DataSetMappper.cs
- InputLanguageCollection.cs
- GroupLabel.cs
- CompilerGeneratedAttribute.cs
- QueryConverter.cs
- FullTrustAssembliesSection.cs
- UnsafeMethods.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DataProtection.cs
- UnsafeNativeMethods.cs
- QueryCreatedEventArgs.cs
- Size3DConverter.cs
- PageMediaSize.cs
- DynamicControl.cs
- PagerSettings.cs
- CodeConstructor.cs
- DispatcherObject.cs
- DesignerLabelAdapter.cs
- Rules.cs
- Preprocessor.cs
- AppearanceEditorPart.cs
- CollectionViewGroup.cs
- CommentAction.cs
- ListViewGroupItemCollection.cs
- ErrorsHelper.cs
- EventLogWatcher.cs
- CustomAttribute.cs