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
- XmlAttributes.cs
- InvalidProgramException.cs
- WebPartUtil.cs
- StrongNameMembershipCondition.cs
- ImageSource.cs
- GridViewEditEventArgs.cs
- XamlBrushSerializer.cs
- TextElementCollection.cs
- ChangePasswordAutoFormat.cs
- SqlConnection.cs
- XmlSchemaNotation.cs
- DataSourceCollectionBase.cs
- LocalizableAttribute.cs
- XamlTypeMapperSchemaContext.cs
- ContextMenuAutomationPeer.cs
- ComplexBindingPropertiesAttribute.cs
- AVElementHelper.cs
- ActivityBuilderXamlWriter.cs
- CapabilitiesRule.cs
- Dispatcher.cs
- LocatorManager.cs
- EntityDesignerDataSourceView.cs
- DbMetaDataCollectionNames.cs
- AspNetPartialTrustHelpers.cs
- InplaceBitmapMetadataWriter.cs
- IIS7UserPrincipal.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- NullableIntAverageAggregationOperator.cs
- PropertyValueUIItem.cs
- SqlDataReaderSmi.cs
- BitmapEffectDrawingContextWalker.cs
- Imaging.cs
- IssuedTokenParametersEndpointAddressElement.cs
- AddInActivator.cs
- WebDescriptionAttribute.cs
- RawAppCommandInputReport.cs
- SerializerProvider.cs
- XmlExpressionDumper.cs
- TableLayoutRowStyleCollection.cs
- DataGridViewMethods.cs
- ContextMenu.cs
- Vector3DAnimation.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- OrderToken.cs
- Triplet.cs
- PropertyValueChangedEvent.cs
- XsltException.cs
- SafeEventHandle.cs
- Attributes.cs
- XmlWriter.cs
- EditingContext.cs
- PageBuildProvider.cs
- DetailsViewRow.cs
- RoleService.cs
- SqlWriter.cs
- ModelItemCollectionImpl.cs
- AssociatedControlConverter.cs
- StreamInfo.cs
- HierarchicalDataTemplate.cs
- HandlerBase.cs
- PropertyMapper.cs
- Point3DValueSerializer.cs
- TextEditorCopyPaste.cs
- CollectionChangeEventArgs.cs
- TagPrefixInfo.cs
- RenderContext.cs
- PasswordDeriveBytes.cs
- SqlProviderManifest.cs
- SearchExpression.cs
- DBSqlParser.cs
- PackagePart.cs
- UnauthorizedAccessException.cs
- ISFClipboardData.cs
- PolicyVersion.cs
- InputBindingCollection.cs
- LocalizationParserHooks.cs
- TransformerInfoCollection.cs
- RtfControlWordInfo.cs
- SourceItem.cs
- TextSelection.cs
- InteropExecutor.cs
- Color.cs
- RegularExpressionValidator.cs
- DataGridViewButtonCell.cs
- StartUpEventArgs.cs
- safemediahandle.cs
- IpcManager.cs
- BoolLiteral.cs
- UserInitiatedNavigationPermission.cs
- TextCompositionEventArgs.cs
- RecognitionEventArgs.cs
- ColorIndependentAnimationStorage.cs
- DataGridViewLinkCell.cs
- _UncName.cs
- ToolbarAUtomationPeer.cs
- KeyPullup.cs
- SchemaElementDecl.cs
- _HeaderInfoTable.cs
- ToolStripAdornerWindowService.cs
- Confirm.cs