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
- PackUriHelper.cs
- PresentationAppDomainManager.cs
- StructureChangedEventArgs.cs
- HttpCachePolicyWrapper.cs
- RegexCapture.cs
- TrustLevelCollection.cs
- GridViewAutomationPeer.cs
- ImageMetadata.cs
- BrowserDefinition.cs
- ConversionContext.cs
- TimeoutValidationAttribute.cs
- SqlConnectionManager.cs
- KeyGestureValueSerializer.cs
- CompilerErrorCollection.cs
- DoubleLinkList.cs
- LocalBuilder.cs
- SynchronousChannelMergeEnumerator.cs
- Paragraph.cs
- FixUpCollection.cs
- SafeSecurityHelper.cs
- WhitespaceRule.cs
- BuiltInExpr.cs
- Models.cs
- SystemDiagnosticsSection.cs
- TranslateTransform.cs
- _HeaderInfo.cs
- RawTextInputReport.cs
- SqlFacetAttribute.cs
- BamlBinaryWriter.cs
- SettingsSection.cs
- BuildResult.cs
- FacetValues.cs
- SlotInfo.cs
- ActivatedMessageQueue.cs
- ValueOfAction.cs
- ConnectionsZone.cs
- NullableDecimalMinMaxAggregationOperator.cs
- CodeFieldReferenceExpression.cs
- SchemaEntity.cs
- UpdatePanel.cs
- IListConverters.cs
- BitmapEffectDrawingContextState.cs
- CurrentChangedEventManager.cs
- AnnotationHelper.cs
- HttpPostedFile.cs
- DataTableNewRowEvent.cs
- ToolboxItemAttribute.cs
- ChtmlFormAdapter.cs
- StrokeFIndices.cs
- FontResourceCache.cs
- PropagatorResult.cs
- WorkflowInstanceProxy.cs
- SolidBrush.cs
- WinEventQueueItem.cs
- WebServiceClientProxyGenerator.cs
- SecurityUtils.cs
- CqlGenerator.cs
- DeviceFiltersSection.cs
- AlphaSortedEnumConverter.cs
- FormsAuthentication.cs
- ImageClickEventArgs.cs
- LinqDataView.cs
- XmlDocumentSerializer.cs
- GlyphInfoList.cs
- ThemeableAttribute.cs
- DataControlFieldHeaderCell.cs
- DelegatingChannelListener.cs
- XsltInput.cs
- _TimerThread.cs
- SecUtil.cs
- OdbcTransaction.cs
- GeneratedView.cs
- PhysicalOps.cs
- oledbconnectionstring.cs
- BindingOperations.cs
- ConnectionStringSettings.cs
- DBSqlParserTable.cs
- EventWaitHandleSecurity.cs
- PkcsUtils.cs
- EntityProviderServices.cs
- Calendar.cs
- Tokenizer.cs
- ViewBase.cs
- FromRequest.cs
- ObjectStorage.cs
- DtdParser.cs
- TokenBasedSet.cs
- HttpProfileBase.cs
- AssociationTypeEmitter.cs
- TextEffectResolver.cs
- DigitShape.cs
- RoleGroup.cs
- NumericExpr.cs
- ConfigXmlCDataSection.cs
- TypeElement.cs
- FlowDocumentReader.cs
- SerializerProvider.cs
- SHA256CryptoServiceProvider.cs
- WindowsImpersonationContext.cs
- DbConnectionClosed.cs