Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebMessageEncoderFactory.cs
- ReverseInheritProperty.cs
- ValidationRule.cs
- DocComment.cs
- _IPv4Address.cs
- BindingList.cs
- DataGridColumnCollection.cs
- MergeExecutor.cs
- autovalidator.cs
- StylusPlugin.cs
- GB18030Encoding.cs
- NonBatchDirectoryCompiler.cs
- ButtonPopupAdapter.cs
- TableColumn.cs
- EntityWrapper.cs
- ProxyManager.cs
- SqlMethods.cs
- _ScatterGatherBuffers.cs
- InteropAutomationProvider.cs
- UInt64.cs
- ObjectSelectorEditor.cs
- MetafileHeaderWmf.cs
- SecurityTraceRecordHelper.cs
- CellRelation.cs
- EventLogTraceListener.cs
- DSACryptoServiceProvider.cs
- Metafile.cs
- XmlSchemaRedefine.cs
- NetNamedPipeSecurityMode.cs
- SqlGatherProducedAliases.cs
- ObjectViewFactory.cs
- SmtpDigestAuthenticationModule.cs
- Decoder.cs
- TextBoxBase.cs
- Ops.cs
- ChannelSinkStacks.cs
- Identity.cs
- GregorianCalendarHelper.cs
- SHA256.cs
- CollectionBase.cs
- RadioButton.cs
- DtrList.cs
- JapaneseCalendar.cs
- WinCategoryAttribute.cs
- Transform.cs
- CustomErrorsSectionWrapper.cs
- ApplicationProxyInternal.cs
- QueryResult.cs
- EndOfStreamException.cs
- EventLogPermissionEntry.cs
- Pair.cs
- EditorZone.cs
- AtomicFile.cs
- ItemDragEvent.cs
- ISCIIEncoding.cs
- ToolStripPanelCell.cs
- WebPartActionVerb.cs
- InterleavedZipPartStream.cs
- CodeCompileUnit.cs
- MatrixAnimationBase.cs
- PropertiesTab.cs
- Enum.cs
- ContractsBCL.cs
- FindResponse.cs
- DesigntimeLicenseContextSerializer.cs
- HostingEnvironmentSection.cs
- ResolveMatchesMessageCD1.cs
- CustomErrorsSection.cs
- GatewayDefinition.cs
- TypePresenter.xaml.cs
- DefaultTextStoreTextComposition.cs
- Connector.cs
- ConfigPathUtility.cs
- WebPermission.cs
- XsltContext.cs
- MembershipPasswordException.cs
- SqlIdentifier.cs
- SqlDelegatedTransaction.cs
- TrustSection.cs
- SafeMarshalContext.cs
- URLIdentityPermission.cs
- TextEndOfParagraph.cs
- PropertyInformation.cs
- RenderContext.cs
- GeometryCollection.cs
- XmlSchemaFacet.cs
- ResourceReferenceExpression.cs
- MethodExpr.cs
- SecurityDocument.cs
- SQLMembershipProvider.cs
- InputScopeConverter.cs
- WindowsScrollBarBits.cs
- EmbossBitmapEffect.cs
- EditorAttributeInfo.cs
- XmlDocumentType.cs
- TreeViewHitTestInfo.cs
- ListBox.cs
- MbpInfo.cs
- UnmanagedMemoryStream.cs
- DateTimeFormatInfoScanner.cs