Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Messaging / System / Messaging / ReceiveCompletedEventArgs.cs / 1305376 / ReceiveCompletedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.Diagnostics; using System; ////// /// public class ReceiveCompletedEventArgs : EventArgs { private IAsyncResult result; private Message message; private MessageQueue sender; ///Provides data for the ////// event. /// internal ReceiveCompletedEventArgs(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.EndReceive(result); } catch { throw; } } return this.message; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //The end result of the posted asynchronous receive /// operation. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.Diagnostics; using System; ////// /// public class ReceiveCompletedEventArgs : EventArgs { private IAsyncResult result; private Message message; private MessageQueue sender; ///Provides data for the ////// event. /// internal ReceiveCompletedEventArgs(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.EndReceive(result); } catch { throw; } } return this.message; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.The end result of the posted asynchronous receive /// operation. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigurationFileMap.cs
- HexParser.cs
- ModelItemDictionary.cs
- OdbcConnection.cs
- OdbcParameter.cs
- SrgsSemanticInterpretationTag.cs
- MsdtcWrapper.cs
- SkipStoryboardToFill.cs
- AuthenticationModuleElement.cs
- BindableAttribute.cs
- webeventbuffer.cs
- TabRenderer.cs
- ClientCredentialsElement.cs
- ToolboxBitmapAttribute.cs
- LinqExpressionNormalizer.cs
- FlowThrottle.cs
- WindowsRegion.cs
- XamlVector3DCollectionSerializer.cs
- DateTimeConverter2.cs
- DesignerLoader.cs
- ProcessModuleCollection.cs
- X509Certificate2Collection.cs
- TransportSecurityProtocol.cs
- PropertySourceInfo.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SqlDuplicator.cs
- ToolStripGrip.cs
- TableHeaderCell.cs
- ExpressionEvaluator.cs
- CheckBoxFlatAdapter.cs
- AutomationElement.cs
- EventArgs.cs
- QilTernary.cs
- _StreamFramer.cs
- MetadataArtifactLoaderFile.cs
- UIElementAutomationPeer.cs
- Knowncolors.cs
- CompilerGeneratedAttribute.cs
- SerialPinChanges.cs
- MemberRelationshipService.cs
- EntityDataSourceValidationException.cs
- PackageDigitalSignature.cs
- RangeValidator.cs
- SizeChangedInfo.cs
- Pens.cs
- RegisteredArrayDeclaration.cs
- MethodAccessException.cs
- DoubleStorage.cs
- UpDownEvent.cs
- SSmlParser.cs
- LongValidatorAttribute.cs
- JsonWriterDelegator.cs
- AvTraceFormat.cs
- PathFigure.cs
- WebHttpBindingCollectionElement.cs
- OrderedDictionaryStateHelper.cs
- Regex.cs
- SqlConnectionFactory.cs
- JsonSerializer.cs
- LoginView.cs
- GreenMethods.cs
- XmlSchemaGroup.cs
- DataListItemEventArgs.cs
- Mouse.cs
- MexBindingElement.cs
- ToolStrip.cs
- LazyTextWriterCreator.cs
- SimpleFileLog.cs
- GACMembershipCondition.cs
- CompoundFileStreamReference.cs
- RotateTransform3D.cs
- UIElement.cs
- OdbcCommand.cs
- ParseHttpDate.cs
- ConstructorBuilder.cs
- PaintValueEventArgs.cs
- DataGridViewCellPaintingEventArgs.cs
- ControlTemplate.cs
- IntegrationExceptionEventArgs.cs
- DefaultEvaluationContext.cs
- MemoryResponseElement.cs
- ServiceElementCollection.cs
- SafeRightsManagementQueryHandle.cs
- Console.cs
- ComAdminWrapper.cs
- ResponseBodyWriter.cs
- FormattedTextSymbols.cs
- ByteViewer.cs
- _AuthenticationState.cs
- CompressedStack.cs
- WorkflowRuntime.cs
- ReflectTypeDescriptionProvider.cs
- ContentType.cs
- TimeSpanConverter.cs
- TreeNodeEventArgs.cs
- WeakKeyDictionary.cs
- XmlBoundElement.cs
- BuildProviderAppliesToAttribute.cs
- ReadOnlyDictionary.cs
- HttpModuleAction.cs