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
- AttributeCollection.cs
- TokenBasedSet.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ProtocolElementCollection.cs
- DefaultSerializationProviderAttribute.cs
- EngineSite.cs
- CompoundFileStreamReference.cs
- KeyInfo.cs
- RadioButton.cs
- COM2ICategorizePropertiesHandler.cs
- ActiveXContainer.cs
- ListViewItemCollectionEditor.cs
- MessageBuffer.cs
- DefaultParameterValueAttribute.cs
- XmlQuerySequence.cs
- TransportConfigurationTypeElement.cs
- TreeViewHitTestInfo.cs
- Matrix3D.cs
- DataRowChangeEvent.cs
- Mutex.cs
- ConnectionManagementElementCollection.cs
- PropertyGrid.cs
- MemberPath.cs
- ExpressionParser.cs
- OuterGlowBitmapEffect.cs
- StylusDownEventArgs.cs
- _NTAuthentication.cs
- UriTemplateTrieNode.cs
- GeneratedCodeAttribute.cs
- FontSource.cs
- DebugInfo.cs
- PersonalizationState.cs
- DataGridViewColumnCollection.cs
- ColumnWidthChangingEvent.cs
- TileModeValidation.cs
- TaskFormBase.cs
- CookieHandler.cs
- TextTreeDeleteContentUndoUnit.cs
- ProviderManager.cs
- SocketException.cs
- Switch.cs
- EventManager.cs
- XNodeNavigator.cs
- HijriCalendar.cs
- NameScopePropertyAttribute.cs
- TextFormatterImp.cs
- TreeNodeEventArgs.cs
- Help.cs
- EntityContainerAssociationSet.cs
- Exception.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- MaskedTextBoxTextEditorDropDown.cs
- XmlElementAttributes.cs
- IdentitySection.cs
- ImageKeyConverter.cs
- PassportIdentity.cs
- ComponentEditorForm.cs
- AssemblySettingAttributes.cs
- StoreUtilities.cs
- XmlFileEditor.cs
- StringArrayEditor.cs
- RoleService.cs
- XmlHierarchyData.cs
- DesignerAdapterUtil.cs
- PtsCache.cs
- NamespaceQuery.cs
- SkinBuilder.cs
- BehaviorDragDropEventArgs.cs
- WebPartDescription.cs
- XamlFrame.cs
- ViewBox.cs
- GeneralTransform.cs
- CategoryNameCollection.cs
- _NegoStream.cs
- NonVisualControlAttribute.cs
- ParentQuery.cs
- UnmanagedMemoryAccessor.cs
- PartialClassGenerationTask.cs
- SerializationBinder.cs
- CollectionChangeEventArgs.cs
- InProcStateClientManager.cs
- LocatorPartList.cs
- Material.cs
- ArgumentNullException.cs
- WebPartCloseVerb.cs
- WizardStepCollectionEditor.cs
- WmfPlaceableFileHeader.cs
- DependencyObject.cs
- SqlDataSourceCommandEventArgs.cs
- GenericPrincipal.cs
- HealthMonitoringSectionHelper.cs
- HwndSource.cs
- CopyAttributesAction.cs
- InkCanvasSelectionAdorner.cs
- QueryExpression.cs
- ListViewItemMouseHoverEvent.cs
- InvalidCastException.cs
- TypedRowHandler.cs
- FilterFactory.cs
- ClassData.cs