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
- BitmapDownload.cs
- streamingZipPartStream.cs
- Triplet.cs
- MessageBodyMemberAttribute.cs
- TypedElement.cs
- Triplet.cs
- CannotUnloadAppDomainException.cs
- documentsequencetextcontainer.cs
- HMAC.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- FormViewDeleteEventArgs.cs
- UserControlBuildProvider.cs
- XPathParser.cs
- FileSystemEventArgs.cs
- SubclassTypeValidator.cs
- processwaithandle.cs
- DataServiceProcessingPipelineEventArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Set.cs
- SystemFonts.cs
- DbProviderConfigurationHandler.cs
- XmlSerializationGeneratedCode.cs
- CustomErrorsSection.cs
- Debug.cs
- WebProxyScriptElement.cs
- CodeComment.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- InsufficientMemoryException.cs
- DbProviderFactory.cs
- NTAccount.cs
- GlyphTypeface.cs
- Vector3dCollection.cs
- DataRecordObjectView.cs
- GlobalizationSection.cs
- DiscriminatorMap.cs
- ISAPIRuntime.cs
- SQLMembershipProvider.cs
- TextFormatterContext.cs
- ColorMap.cs
- TypefaceMap.cs
- DataFormats.cs
- TimeStampChecker.cs
- PolyBezierSegment.cs
- SoapReflectionImporter.cs
- Helpers.cs
- SqlUtils.cs
- BasicHttpSecurityMode.cs
- FilterException.cs
- SkinBuilder.cs
- MimePart.cs
- WebPartZoneBase.cs
- CachedTypeface.cs
- DrawTreeNodeEventArgs.cs
- FormViewRow.cs
- CookieParameter.cs
- LineServicesCallbacks.cs
- TextEditorMouse.cs
- SmiXetterAccessMap.cs
- NetCodeGroup.cs
- Base64Encoder.cs
- QuotedPrintableStream.cs
- Menu.cs
- SqlParameterCollection.cs
- DoubleLinkListEnumerator.cs
- CategoryAttribute.cs
- AnnotationResourceCollection.cs
- ActivityCodeGenerator.cs
- panel.cs
- HttpRequestCacheValidator.cs
- ProbeMatchesCD1.cs
- CorePropertiesFilter.cs
- ResourceWriter.cs
- RepeaterItem.cs
- HttpPostedFile.cs
- ValidatingReaderNodeData.cs
- RecognizedAudio.cs
- SystemIcmpV4Statistics.cs
- ContentFileHelper.cs
- Rect.cs
- TextParagraphCache.cs
- TextReader.cs
- Viewport3DAutomationPeer.cs
- DefaultPropertyAttribute.cs
- WhitespaceRuleReader.cs
- UnicodeEncoding.cs
- NetTcpSection.cs
- PolicyStatement.cs
- OleDbSchemaGuid.cs
- TemplateParser.cs
- PersistenceMetadataNamespace.cs
- BulletDecorator.cs
- ClipboardProcessor.cs
- BitmapEffect.cs
- WebServicesDescriptionAttribute.cs
- BitmapEffectGroup.cs
- ScriptReferenceEventArgs.cs
- TogglePatternIdentifiers.cs
- ISCIIEncoding.cs
- Switch.cs
- XmlAnyElementAttributes.cs