Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UIElement.cs
- EventLogPermissionEntry.cs
- RelationshipEndCollection.cs
- MemberRelationshipService.cs
- RightsManagementEncryptionTransform.cs
- Timer.cs
- UnsafeNativeMethods.cs
- AssociationType.cs
- SystemGatewayIPAddressInformation.cs
- CompositeCollectionView.cs
- HttpChannelHelper.cs
- COM2TypeInfoProcessor.cs
- XmlDocumentFragment.cs
- PropertyNames.cs
- MarshalByValueComponent.cs
- DataGridViewCellPaintingEventArgs.cs
- HMACSHA1.cs
- InvalidPrinterException.cs
- ListParaClient.cs
- XamlDesignerSerializationManager.cs
- StickyNoteContentControl.cs
- Byte.cs
- StylusSystemGestureEventArgs.cs
- TextReader.cs
- ResetableIterator.cs
- dsa.cs
- ScriptIgnoreAttribute.cs
- TrackBar.cs
- FolderLevelBuildProviderCollection.cs
- TextElement.cs
- SendParametersContent.cs
- SettingsProviderCollection.cs
- Lookup.cs
- IItemProperties.cs
- DrawingContextDrawingContextWalker.cs
- XamlSerializerUtil.cs
- Facet.cs
- WebMessageEncoderFactory.cs
- TreeNodeEventArgs.cs
- OutputCacheModule.cs
- CanExecuteRoutedEventArgs.cs
- ViewKeyConstraint.cs
- Mutex.cs
- RootAction.cs
- Attributes.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- FieldToken.cs
- NameValueConfigurationCollection.cs
- NamedPipeConnectionPool.cs
- ServiceHostFactory.cs
- Point3D.cs
- CompareInfo.cs
- COM2ComponentEditor.cs
- UIElementAutomationPeer.cs
- BlurBitmapEffect.cs
- FreezableDefaultValueFactory.cs
- WsatServiceAddress.cs
- ZipFileInfo.cs
- SolidBrush.cs
- WindowsStatusBar.cs
- LiteralSubsegment.cs
- ImageConverter.cs
- WSHttpSecurityElement.cs
- InstanceDescriptor.cs
- SessionEndingEventArgs.cs
- ServiceOperation.cs
- StorageComplexPropertyMapping.cs
- Schema.cs
- DeclarativeConditionsCollection.cs
- SystemIcmpV4Statistics.cs
- CommonObjectSecurity.cs
- ReaderWriterLock.cs
- XmlReader.cs
- XamlFigureLengthSerializer.cs
- Trigger.cs
- OracleBoolean.cs
- IgnoreDataMemberAttribute.cs
- WbmpConverter.cs
- ProxyHelper.cs
- EntityException.cs
- FormViewUpdatedEventArgs.cs
- ExpressionConverter.cs
- DatatypeImplementation.cs
- NullableLongMinMaxAggregationOperator.cs
- HeaderedItemsControl.cs
- SectionVisual.cs
- Light.cs
- HyperLink.cs
- SatelliteContractVersionAttribute.cs
- XmlMtomWriter.cs
- IChannel.cs
- TimeEnumHelper.cs
- MimeWriter.cs
- DataGridViewColumnCollection.cs
- ContainerParaClient.cs
- ByteConverter.cs
- DesignerCategoryAttribute.cs
- PtsHost.cs
- WindowsFormsDesignerOptionService.cs