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
- Opcode.cs
- Transform3DGroup.cs
- RelationshipWrapper.cs
- SafeCertificateStore.cs
- DependencyPropertyChangedEventArgs.cs
- ValidatingReaderNodeData.cs
- HttpGetProtocolImporter.cs
- ContentAlignmentEditor.cs
- DataGridViewRowsAddedEventArgs.cs
- DynamicContractTypeBuilder.cs
- ObjectAssociationEndMapping.cs
- DictionaryEntry.cs
- BooleanFunctions.cs
- FilterQuery.cs
- EdmSchemaAttribute.cs
- LineProperties.cs
- FontWeight.cs
- UrlPropertyAttribute.cs
- RoleGroupCollectionEditor.cs
- TemplateParser.cs
- WindowsListBox.cs
- StringFunctions.cs
- EditingScopeUndoUnit.cs
- ToolStripPanelCell.cs
- ExceptionTrace.cs
- WindowsListView.cs
- InternalControlCollection.cs
- AccessText.cs
- NonParentingControl.cs
- AmbientLight.cs
- XPathNavigator.cs
- EventLogPermissionEntry.cs
- DataColumnMappingCollection.cs
- UrlAuthFailedErrorFormatter.cs
- XmlReader.cs
- TdsEnums.cs
- XamlStyleSerializer.cs
- WebHttpElement.cs
- SmiRequestExecutor.cs
- HttpProtocolReflector.cs
- GestureRecognizer.cs
- FilterableAttribute.cs
- CardSpaceShim.cs
- DeviceFilterEditorDialog.cs
- TableChangeProcessor.cs
- _NetRes.cs
- RadioButtonPopupAdapter.cs
- WebPartZoneBase.cs
- CompilationLock.cs
- OleDbError.cs
- CompositeFontInfo.cs
- XmlDownloadManager.cs
- Stroke.cs
- MatrixStack.cs
- SafeRegistryHandle.cs
- CombinedGeometry.cs
- RelationshipEnd.cs
- ISAPIApplicationHost.cs
- Calendar.cs
- UriSection.cs
- PagerStyle.cs
- PreservationFileWriter.cs
- QueryContext.cs
- DetailsViewRow.cs
- RC2.cs
- Wildcard.cs
- FontDriver.cs
- SqlBuffer.cs
- ConfigPathUtility.cs
- FileLogRecordStream.cs
- HtmlEmptyTagControlBuilder.cs
- UnsafeNativeMethodsTablet.cs
- SynchronizedPool.cs
- BamlResourceDeserializer.cs
- RtfControlWordInfo.cs
- RandomNumberGenerator.cs
- DataSourceView.cs
- DataControlFieldHeaderCell.cs
- WindowPatternIdentifiers.cs
- FrameworkPropertyMetadata.cs
- ColorComboBox.cs
- ClientSettingsSection.cs
- MetadataHelper.cs
- DesignerHelpers.cs
- BuilderPropertyEntry.cs
- ContractType.cs
- Color.cs
- TextServicesCompartment.cs
- NativeRightsManagementAPIsStructures.cs
- XamlTemplateSerializer.cs
- MemoryFailPoint.cs
- ModelUIElement3D.cs
- ServiceBusyException.cs
- PostBackOptions.cs
- TokenDescriptor.cs
- DbQueryCommandTree.cs
- CustomCategoryAttribute.cs
- TableLayoutPanelCodeDomSerializer.cs
- PointValueSerializer.cs
- _NestedSingleAsyncResult.cs