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;
///
///
/// Provides data for the
/// event.
///
public class ReceiveCompletedEventArgs : EventArgs {
private IAsyncResult result;
private Message message;
private MessageQueue sender;
///
///
internal ReceiveCompletedEventArgs(MessageQueue sender, IAsyncResult result) {
this.result = result;
this.sender = sender;
}
///
///
/// Contains the result of the asynchronous
/// operation requested.
///
public IAsyncResult AsyncResult {
get {
return this.result;
}
set {
this.result = value;
}
}
///
///
/// The end result of the posted asynchronous receive
/// operation.
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegisteredScript.cs
- TcpDuplicateContext.cs
- ProfileParameter.cs
- TextRangeBase.cs
- SafeRightsManagementHandle.cs
- ArrayTypeMismatchException.cs
- CompiledWorkflowDefinitionContext.cs
- graph.cs
- IconHelper.cs
- MultiPropertyDescriptorGridEntry.cs
- InternalSendMessage.cs
- QuaternionRotation3D.cs
- PaperSource.cs
- Encoder.cs
- DocumentViewerBaseAutomationPeer.cs
- ServiceModelSecurityTokenTypes.cs
- diagnosticsswitches.cs
- dbenumerator.cs
- ComplusTypeValidator.cs
- TextElementCollection.cs
- ConcurrentBag.cs
- PrincipalPermission.cs
- CodeAccessPermission.cs
- _emptywebproxy.cs
- CategoriesDocument.cs
- HttpWebRequestElement.cs
- TypeDescriptionProviderAttribute.cs
- AssemblyResourceLoader.cs
- InfocardInteractiveChannelInitializer.cs
- SourceFileBuildProvider.cs
- BidirectionalDictionary.cs
- FrameworkElementFactory.cs
- ValidatingReaderNodeData.cs
- WebPartConnectionsCancelVerb.cs
- CheckableControlBaseAdapter.cs
- BindingEntityInfo.cs
- Cursor.cs
- WindowShowOrOpenTracker.cs
- HttpModulesSection.cs
- SerialErrors.cs
- ConnectionConsumerAttribute.cs
- WmiPutTraceRecord.cs
- Panel.cs
- LineVisual.cs
- XmlDictionary.cs
- FixedSOMPageElement.cs
- ObjectListGeneralPage.cs
- HtmlInputSubmit.cs
- Keywords.cs
- QueryPrefixOp.cs
- shaperfactory.cs
- Point.cs
- GZipUtils.cs
- ChtmlLinkAdapter.cs
- Renderer.cs
- PropertyChangingEventArgs.cs
- EventMappingSettings.cs
- ContentPosition.cs
- glyphs.cs
- ProviderUtil.cs
- DocumentXPathNavigator.cs
- UnmanagedMarshal.cs
- StringSorter.cs
- NodeInfo.cs
- CreateUserWizardStep.cs
- FileSystemWatcher.cs
- DocComment.cs
- CodeRegionDirective.cs
- DetailsViewRow.cs
- DataPagerFieldCollection.cs
- StringSource.cs
- StorageScalarPropertyMapping.cs
- ReflectTypeDescriptionProvider.cs
- XhtmlBasicCalendarAdapter.cs
- GroupItem.cs
- EntityProxyFactory.cs
- ConfigXmlDocument.cs
- MatchingStyle.cs
- entitydatasourceentitysetnameconverter.cs
- StackSpiller.Bindings.cs
- WebReferenceOptions.cs
- CompensationTokenData.cs
- VisualBasicExpressionConverter.cs
- WindowsSecurityTokenAuthenticator.cs
- BinaryObjectWriter.cs
- ObjectParameter.cs
- DocumentReference.cs
- MessageHeaderT.cs
- DetailsViewPagerRow.cs
- InstanceView.cs
- Clock.cs
- FixedSOMLineCollection.cs
- SecondaryIndexDefinition.cs
- ProfileSettings.cs
- XmlSchemaFacet.cs
- LabelEditEvent.cs
- RegexTree.cs
- LinkConverter.cs
- SqlTriggerContext.cs
- HttpListenerElement.cs