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
- DataGridViewLinkCell.cs
- TokenDescriptor.cs
- Vector3dCollection.cs
- StreamGeometry.cs
- FontFamilyIdentifier.cs
- FileVersion.cs
- BezierSegment.cs
- Transform.cs
- RoleManagerSection.cs
- FormViewUpdateEventArgs.cs
- FrameworkTextComposition.cs
- CodeMemberField.cs
- NonParentingControl.cs
- DataViewManager.cs
- TrustLevelCollection.cs
- Size.cs
- StructuralCache.cs
- BufferModesCollection.cs
- TableChangeProcessor.cs
- ResourceType.cs
- ViewBox.cs
- UnsafeNativeMethods.cs
- DbParameterHelper.cs
- RayHitTestParameters.cs
- SharedPersonalizationStateInfo.cs
- IdentityModelDictionary.cs
- AffineTransform3D.cs
- InfoCardSchemas.cs
- SqlUtils.cs
- CachedCompositeFamily.cs
- SynchronizingStream.cs
- ToggleButtonAutomationPeer.cs
- MembershipSection.cs
- ContentPosition.cs
- BinaryConverter.cs
- ListViewSortEventArgs.cs
- RepeaterItemCollection.cs
- UniqueIdentifierService.cs
- ZipIOModeEnforcingStream.cs
- DockPatternIdentifiers.cs
- SharedStream.cs
- CompModHelpers.cs
- DataGridItemCollection.cs
- TemplateXamlParser.cs
- AQNBuilder.cs
- SelectionProcessor.cs
- PeerObject.cs
- GroupItem.cs
- PageStatePersister.cs
- SR.cs
- ModulesEntry.cs
- SchemaNames.cs
- ProxyWebPart.cs
- ZipIOCentralDirectoryFileHeader.cs
- ChtmlTextWriter.cs
- HelpKeywordAttribute.cs
- Thickness.cs
- SRGSCompiler.cs
- UTF32Encoding.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ContourSegment.cs
- mongolianshape.cs
- Monitor.cs
- TextSpan.cs
- GridViewDeleteEventArgs.cs
- SubtreeProcessor.cs
- BuilderPropertyEntry.cs
- Imaging.cs
- ExceptionDetail.cs
- Help.cs
- AnnotationDocumentPaginator.cs
- SQLConvert.cs
- Style.cs
- CodeTypeConstructor.cs
- RenderData.cs
- XmlMapping.cs
- FixedSOMElement.cs
- HScrollProperties.cs
- SortDescriptionCollection.cs
- TextChange.cs
- DataServiceQueryOfT.cs
- DataGridState.cs
- OneWayChannelFactory.cs
- DataTableMappingCollection.cs
- mediaclock.cs
- LabelAutomationPeer.cs
- PageRanges.cs
- StrokeRenderer.cs
- TextModifierScope.cs
- GifBitmapEncoder.cs
- DataColumn.cs
- ExpandableObjectConverter.cs
- Int64Animation.cs
- EntityProviderFactory.cs
- ImageField.cs
- TextBreakpoint.cs
- FontStretches.cs
- SHA256Managed.cs
- XmlUtil.cs
- SecuritySessionFilter.cs