Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Messaging / System / Messaging / PeekCompletedEventArgs.cs / 1305376 / PeekCompletedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.Diagnostics; using System; ////// /// public class PeekCompletedEventArgs : EventArgs { private IAsyncResult result; private Message message; private MessageQueue sender; ///Provides data for the ///event. When your asynchronous /// operation calls an event handler, an instance of this class is passed to the /// handler. /// internal PeekCompletedEventArgs(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.EndPeek(result); } catch { throw; } } return this.message; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //The end result of the posted asynchronous peek /// operation. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.Diagnostics; using System; ////// /// public class PeekCompletedEventArgs : EventArgs { private IAsyncResult result; private Message message; private MessageQueue sender; ///Provides data for the ///event. When your asynchronous /// operation calls an event handler, an instance of this class is passed to the /// handler. /// internal PeekCompletedEventArgs(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.EndPeek(result); } catch { throw; } } return this.message; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.The end result of the posted asynchronous peek /// operation. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlProfileProvider.cs
- XmlDataDocument.cs
- ToolStripEditorManager.cs
- Activator.cs
- TextDecoration.cs
- FontFamilyValueSerializer.cs
- GeometryHitTestParameters.cs
- HwndSourceKeyboardInputSite.cs
- PropertyManager.cs
- SpecialFolderEnumConverter.cs
- NameSpaceExtractor.cs
- SqlUdtInfo.cs
- PrintDialogException.cs
- KeyPressEvent.cs
- MoveSizeWinEventHandler.cs
- IListConverters.cs
- ApplicationFileParser.cs
- HostingPreferredMapPath.cs
- DocumentViewerBase.cs
- XD.cs
- XmlSchemaInferenceException.cs
- CodeObject.cs
- PathSegmentCollection.cs
- FontNamesConverter.cs
- MemberListBinding.cs
- TextClipboardData.cs
- HoistedLocals.cs
- DataExpression.cs
- ContentTextAutomationPeer.cs
- PageTheme.cs
- WindowsSecurityTokenAuthenticator.cs
- DragEvent.cs
- EntityTypeBase.cs
- SmiMetaData.cs
- dtdvalidator.cs
- PropertyGridCommands.cs
- TripleDES.cs
- ThreadStateException.cs
- _BasicClient.cs
- InstanceLockedException.cs
- SqlExpressionNullability.cs
- DetailsViewDeleteEventArgs.cs
- TreeNode.cs
- RequestCacheValidator.cs
- HtmlElement.cs
- DataStreams.cs
- DataGridViewCellStyle.cs
- MatrixTransform3D.cs
- SelectionHighlightInfo.cs
- WebPartUtil.cs
- ApplicationProxyInternal.cs
- ColorAnimationBase.cs
- WinEventWrap.cs
- ConfigDefinitionUpdates.cs
- PartialCachingAttribute.cs
- ExpandCollapsePattern.cs
- WebServiceHandler.cs
- SelectionChangedEventArgs.cs
- TextEditorThreadLocalStore.cs
- IImplicitResourceProvider.cs
- RectangleConverter.cs
- NextPreviousPagerField.cs
- EntityDataSourceContainerNameConverter.cs
- AssociationType.cs
- DrawListViewSubItemEventArgs.cs
- ClientUtils.cs
- MembershipUser.cs
- OfTypeExpression.cs
- DropDownList.cs
- PeerToPeerException.cs
- PropertySet.cs
- OptimisticConcurrencyException.cs
- ChineseLunisolarCalendar.cs
- ListSourceHelper.cs
- Codec.cs
- RequestCacheValidator.cs
- DataGridViewRowCancelEventArgs.cs
- SolidBrush.cs
- coordinatorfactory.cs
- AuthenticationModuleElementCollection.cs
- PrinterResolution.cs
- GlyphInfoList.cs
- MultipartIdentifier.cs
- XmlDocumentFragment.cs
- SqlNotificationRequest.cs
- TimelineGroup.cs
- Transform.cs
- UpDownEvent.cs
- DataProtection.cs
- RichTextBox.cs
- AutomationPattern.cs
- FontFamilyConverter.cs
- ServiceModelEnumValidatorAttribute.cs
- SoapTypeAttribute.cs
- SchemaTypeEmitter.cs
- RectangleHotSpot.cs
- DataControlImageButton.cs
- InputEventArgs.cs
- BindingWorker.cs
- SchemaImporterExtension.cs