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
- XPathNavigator.cs
- TypefaceCollection.cs
- MethodMessage.cs
- Image.cs
- ObjectDataProvider.cs
- ActivityDesigner.cs
- Expression.cs
- SmtpMail.cs
- TypeRestriction.cs
- PrintControllerWithStatusDialog.cs
- querybuilder.cs
- MatcherBuilder.cs
- DateTimeSerializationSection.cs
- AspNetCompatibilityRequirementsAttribute.cs
- Int32Converter.cs
- DataGridViewAccessibleObject.cs
- SingleBodyParameterMessageFormatter.cs
- CodeAttributeArgumentCollection.cs
- oledbmetadatacolumnnames.cs
- CodeRemoveEventStatement.cs
- HttpServerUtilityWrapper.cs
- PackageFilter.cs
- PackWebResponse.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TableLayoutRowStyleCollection.cs
- DragDeltaEventArgs.cs
- ListManagerBindingsCollection.cs
- WebMessageFormatHelper.cs
- SqlFactory.cs
- HttpListenerContext.cs
- CheckBox.cs
- CodeExpressionCollection.cs
- AnnotationObservableCollection.cs
- ToolStripSplitButton.cs
- ADConnectionHelper.cs
- ToolStripGrip.cs
- codemethodreferenceexpression.cs
- InfoCardX509Validator.cs
- XmlChoiceIdentifierAttribute.cs
- WebResourceAttribute.cs
- ObjectDataSourceSelectingEventArgs.cs
- MetadataResolver.cs
- TabPage.cs
- DataGridViewCellMouseEventArgs.cs
- XPathNavigatorKeyComparer.cs
- TraceHwndHost.cs
- ColorConverter.cs
- ToolstripProfessionalRenderer.cs
- FormViewInsertEventArgs.cs
- RuntimeConfig.cs
- XmlNamespaceDeclarationsAttribute.cs
- TableChangeProcessor.cs
- FacetChecker.cs
- XmlNamedNodeMap.cs
- ExpressionsCollectionConverter.cs
- Positioning.cs
- Mapping.cs
- IpcPort.cs
- AutomationPatternInfo.cs
- SyndicationElementExtensionCollection.cs
- HttpContextBase.cs
- ExceptionUtil.cs
- AspNetSynchronizationContext.cs
- XmlDeclaration.cs
- SizeConverter.cs
- DynamicActivity.cs
- RepeatInfo.cs
- CrossSiteScriptingValidation.cs
- AlignmentYValidation.cs
- oledbmetadatacollectionnames.cs
- ProcessInputEventArgs.cs
- GridViewCommandEventArgs.cs
- RedirectionProxy.cs
- ColorIndependentAnimationStorage.cs
- TextInfo.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- BamlStream.cs
- ConnectionsZone.cs
- GradientBrush.cs
- EncoderFallback.cs
- UnorderedHashRepartitionStream.cs
- DataGridViewCellCancelEventArgs.cs
- XmlSchemaDocumentation.cs
- CfgParser.cs
- NotifyCollectionChangedEventArgs.cs
- CodeAccessPermission.cs
- SqlProcedureAttribute.cs
- MatrixTransform.cs
- ServiceDescription.cs
- TrustLevelCollection.cs
- UnsafeNativeMethodsCLR.cs
- SymmetricCryptoHandle.cs
- Binding.cs
- XmlSchemaAll.cs
- DataTemplateKey.cs
- MemoryMappedViewAccessor.cs
- Baml2006KeyRecord.cs
- TableRowCollection.cs
- CodeRegionDirective.cs
- ConsoleKeyInfo.cs