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
- OleDbInfoMessageEvent.cs
- Bold.cs
- UpdateCompiler.cs
- BasicHttpMessageCredentialType.cs
- AxHost.cs
- ProtocolReflector.cs
- ContourSegment.cs
- XamlClipboardData.cs
- XmlAnyAttributeAttribute.cs
- JapaneseCalendar.cs
- ToolboxItemCollection.cs
- CharAnimationBase.cs
- EntryWrittenEventArgs.cs
- TagMapCollection.cs
- DataConnectionHelper.cs
- TreeChangeInfo.cs
- InheritanceAttribute.cs
- TimersDescriptionAttribute.cs
- NamespaceMapping.cs
- BezierSegment.cs
- PrintDialog.cs
- CheckPair.cs
- datacache.cs
- WorkflowInspectionServices.cs
- LicenseContext.cs
- ImageFormatConverter.cs
- HGlobalSafeHandle.cs
- ModuleElement.cs
- UiaCoreProviderApi.cs
- HandlerBase.cs
- KnownTypeHelper.cs
- PeerChannelListener.cs
- LineServicesCallbacks.cs
- SQLBytes.cs
- TableLayoutColumnStyleCollection.cs
- SystemWebCachingSectionGroup.cs
- OdbcCommand.cs
- Codec.cs
- SatelliteContractVersionAttribute.cs
- DecoderNLS.cs
- URLAttribute.cs
- PackWebResponse.cs
- AppDomainInfo.cs
- Glyph.cs
- ConfigXmlCDataSection.cs
- ScriptingWebServicesSectionGroup.cs
- StandardBindingImporter.cs
- HierarchicalDataSourceIDConverter.cs
- TryCatchDesigner.xaml.cs
- SimpleMailWebEventProvider.cs
- Camera.cs
- Int32RectValueSerializer.cs
- SystemParameters.cs
- PagedDataSource.cs
- ColumnBinding.cs
- StrokeNodeOperations2.cs
- CroppedBitmap.cs
- FlowDocumentFormatter.cs
- ObjectSecurity.cs
- StyleXamlParser.cs
- ScrollData.cs
- StatusStrip.cs
- ExpressionPrefixAttribute.cs
- WebPartConnectionsCloseVerb.cs
- RegisteredExpandoAttribute.cs
- Stackframe.cs
- ValidatedControlConverter.cs
- ByteStorage.cs
- Memoizer.cs
- TableCell.cs
- DeferredReference.cs
- Sequence.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- DragEvent.cs
- WebPartZoneAutoFormat.cs
- TraceContextRecord.cs
- ArrangedElementCollection.cs
- DataObjectEventArgs.cs
- RSAOAEPKeyExchangeFormatter.cs
- Label.cs
- WindowsMenu.cs
- HyperLinkColumn.cs
- DependencyPropertyHelper.cs
- PermissionSetTriple.cs
- Glyph.cs
- VariableDesigner.xaml.cs
- ResourceDisplayNameAttribute.cs
- ServiceHttpHandlerFactory.cs
- ToolStripArrowRenderEventArgs.cs
- InheritedPropertyDescriptor.cs
- ConstantExpression.cs
- fixedPageContentExtractor.cs
- SqlDeflator.cs
- HttpRuntime.cs
- CodeConstructor.cs
- SafeWaitHandle.cs
- FlowDocumentFormatter.cs
- LabelAutomationPeer.cs
- OfTypeExpression.cs
- XmlAtomicValue.cs