Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZipIOLocalFileDataDescriptor.cs
- ElementHostAutomationPeer.cs
- HotSpot.cs
- translator.cs
- InternalConfigHost.cs
- RadioButton.cs
- UIInitializationException.cs
- SqlRecordBuffer.cs
- ContentType.cs
- TypedDatasetGenerator.cs
- AppDomainManager.cs
- SqlDataSourceView.cs
- TraceListeners.cs
- DataSysAttribute.cs
- KeyboardNavigation.cs
- _AutoWebProxyScriptEngine.cs
- DocumentXmlWriter.cs
- StorageScalarPropertyMapping.cs
- InstanceDataCollectionCollection.cs
- Link.cs
- TableLayoutSettingsTypeConverter.cs
- CodeTypeOfExpression.cs
- PasswordDeriveBytes.cs
- MappingMetadataHelper.cs
- TextBox.cs
- DesignerAttributeInfo.cs
- FixedPageProcessor.cs
- SafeProcessHandle.cs
- ListGeneralPage.cs
- FunctionNode.cs
- ProfileParameter.cs
- ValueQuery.cs
- SessionSwitchEventArgs.cs
- DelegatedStream.cs
- ResourceCategoryAttribute.cs
- FixedLineResult.cs
- CurrentTimeZone.cs
- SimpleWorkerRequest.cs
- SystemGatewayIPAddressInformation.cs
- ReferenceEqualityComparer.cs
- BamlLocalizabilityResolver.cs
- DataGridViewTextBoxEditingControl.cs
- OperandQuery.cs
- XPathParser.cs
- MatrixAnimationUsingKeyFrames.cs
- Sql8ExpressionRewriter.cs
- WebPartZoneBase.cs
- AllMembershipCondition.cs
- JavaScriptObjectDeserializer.cs
- Size.cs
- InternalBase.cs
- DirectionalLight.cs
- DataBindingCollectionEditor.cs
- SimpleModelProvider.cs
- KeyGestureConverter.cs
- Converter.cs
- XmlStringTable.cs
- RegexCharClass.cs
- FontFamilyIdentifier.cs
- QuaternionRotation3D.cs
- ParameterElementCollection.cs
- DoubleLinkList.cs
- TimeoutValidationAttribute.cs
- TextTreeUndoUnit.cs
- CryptographicAttribute.cs
- ResourceCodeDomSerializer.cs
- ClrPerspective.cs
- SslStream.cs
- UpdatePanelTrigger.cs
- HexParser.cs
- LineSegment.cs
- ExpressionBinding.cs
- AnnotationHelper.cs
- VisualBrush.cs
- BamlTreeNode.cs
- VisualStyleElement.cs
- Literal.cs
- OdbcParameterCollection.cs
- PagesChangedEventArgs.cs
- BoolLiteral.cs
- DispatchWrapper.cs
- ToolStripItemDesigner.cs
- TreeNode.cs
- ObjectManager.cs
- SynchronizationContextHelper.cs
- PathSegmentCollection.cs
- RtfFormatStack.cs
- XmlSchemaAttribute.cs
- HMACSHA512.cs
- WorkflowMarkupSerializationProvider.cs
- X509SecurityTokenParameters.cs
- TextElement.cs
- ClassHandlersStore.cs
- XPathNodeHelper.cs
- TableDetailsRow.cs
- SQLCharsStorage.cs
- NamedPipeConnectionPoolSettings.cs
- SoapIgnoreAttribute.cs
- XpsFontSubsetter.cs
- SystemPens.cs