Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OverrideMode.cs
- LocalFileSettingsProvider.cs
- CodeExporter.cs
- PageParserFilter.cs
- SamlDelegatingWriter.cs
- WorkflowDesignerMessageFilter.cs
- Content.cs
- ContextMenuAutomationPeer.cs
- ISFClipboardData.cs
- WebPartConnectionsConfigureVerb.cs
- EpmCustomContentSerializer.cs
- WSTrustDec2005.cs
- diagnosticsswitches.cs
- SharedPersonalizationStateInfo.cs
- SQLInt64Storage.cs
- IxmlLineInfo.cs
- DocumentGrid.cs
- COM2ExtendedTypeConverter.cs
- SmiTypedGetterSetter.cs
- VSWCFServiceContractGenerator.cs
- ColorBlend.cs
- XmlComment.cs
- SqlGatherConsumedAliases.cs
- cryptoapiTransform.cs
- NavigationWindow.cs
- GiveFeedbackEventArgs.cs
- HtmlTableCellCollection.cs
- IArgumentProvider.cs
- WindowsListViewGroupHelper.cs
- CompositionAdorner.cs
- PageEventArgs.cs
- PartialCachingControl.cs
- XmlSchemaParticle.cs
- RegistryPermission.cs
- StackSpiller.Bindings.cs
- XmlILModule.cs
- SendMessageContent.cs
- FaultReasonText.cs
- DataKey.cs
- Events.cs
- MsmqBindingMonitor.cs
- CqlLexer.cs
- QueueException.cs
- RegularExpressionValidator.cs
- FormViewActionList.cs
- CompositeScriptReference.cs
- __FastResourceComparer.cs
- PageWrapper.cs
- HitTestDrawingContextWalker.cs
- StringOutput.cs
- HttpConfigurationSystem.cs
- SourceSwitch.cs
- MatchingStyle.cs
- TypeUtil.cs
- JsonEncodingStreamWrapper.cs
- DrawingServices.cs
- ReliableDuplexSessionChannel.cs
- BufferedReceiveElement.cs
- ListViewHitTestInfo.cs
- SchemaCreator.cs
- AppSettingsExpressionEditor.cs
- WindowsPen.cs
- JsonDeserializer.cs
- EncodingDataItem.cs
- CollectionView.cs
- DataBindingCollection.cs
- WebException.cs
- SmtpAuthenticationManager.cs
- WriteFileContext.cs
- ArgumentValidation.cs
- TypedReference.cs
- ClickablePoint.cs
- VectorAnimation.cs
- ValueTable.cs
- QueryCacheEntry.cs
- RepeatInfo.cs
- DataGridCheckBoxColumn.cs
- OdbcCommandBuilder.cs
- XmlSchemaCompilationSettings.cs
- MenuCommands.cs
- MetadataArtifactLoaderResource.cs
- OSFeature.cs
- BaseCollection.cs
- TraceListeners.cs
- LookupNode.cs
- DataGridItem.cs
- BamlResourceSerializer.cs
- DataServiceRequestException.cs
- SerializationHelper.cs
- adornercollection.cs
- AutoCompleteStringCollection.cs
- WebHttpBehavior.cs
- RegexParser.cs
- SystemColorTracker.cs
- ServerType.cs
- LogRestartAreaEnumerator.cs
- TypeConverter.cs
- ContentControl.cs
- StylesEditorDialog.cs
- TypeUtil.cs