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
- NativeMethods.cs
- SynchronizationLockException.cs
- DataControlFieldCell.cs
- StylusPointCollection.cs
- FileAccessException.cs
- DataSetMappper.cs
- SystemResourceHost.cs
- PersonalizationProviderCollection.cs
- ZipIOLocalFileBlock.cs
- TreeViewItemAutomationPeer.cs
- MetadataItemEmitter.cs
- SelectedGridItemChangedEvent.cs
- GroupQuery.cs
- ProfileSection.cs
- ComplexBindingPropertiesAttribute.cs
- InOutArgument.cs
- Parser.cs
- CodeDirectoryCompiler.cs
- ListViewTableRow.cs
- Assert.cs
- InputLanguageSource.cs
- HatchBrush.cs
- ReleaseInstanceMode.cs
- CachedPathData.cs
- DeviceContexts.cs
- DecoderReplacementFallback.cs
- StateMachineDesignerPaint.cs
- DataException.cs
- RelativeSource.cs
- AssemblyNameProxy.cs
- Int16.cs
- PaperSource.cs
- RawAppCommandInputReport.cs
- XhtmlBasicTextViewAdapter.cs
- XmlUtilWriter.cs
- AtomServiceDocumentSerializer.cs
- ChangeBlockUndoRecord.cs
- TagPrefixAttribute.cs
- BitmapEffect.cs
- PersonalizationStateInfoCollection.cs
- GlobalizationSection.cs
- XmlSerializationGeneratedCode.cs
- ValueExpressions.cs
- XmlElementAttribute.cs
- ToolStripItemRenderEventArgs.cs
- TextDocumentView.cs
- OdbcUtils.cs
- CompilationLock.cs
- ContentElementAutomationPeer.cs
- DefaultHttpHandler.cs
- ParsedRoute.cs
- ModelItemKeyValuePair.cs
- XhtmlConformanceSection.cs
- Token.cs
- ArrangedElement.cs
- Transform3D.cs
- PopupRoot.cs
- WebHeaderCollection.cs
- SystemKeyConverter.cs
- ToolStripItemClickedEventArgs.cs
- Knowncolors.cs
- CollectionEditVerbManager.cs
- ViewDesigner.cs
- ExtendedPropertyDescriptor.cs
- TemplatePartAttribute.cs
- latinshape.cs
- CodeGenerator.cs
- SupportingTokenProviderSpecification.cs
- PropagationProtocolsTracing.cs
- TraceSwitch.cs
- TimeoutStream.cs
- SeekStoryboard.cs
- DataGridViewRowHeaderCell.cs
- DetailsView.cs
- AppSettingsReader.cs
- InertiaRotationBehavior.cs
- PLINQETWProvider.cs
- StyleCollectionEditor.cs
- TableLayout.cs
- Clipboard.cs
- SmtpReplyReaderFactory.cs
- SqlDataSourceQueryConverter.cs
- XmlComplianceUtil.cs
- XmlObjectSerializerReadContextComplexJson.cs
- COMException.cs
- TextServicesCompartmentContext.cs
- ConstructorNeedsTagAttribute.cs
- Button.cs
- NamedPermissionSet.cs
- LineServicesCallbacks.cs
- ListViewItem.cs
- IPCCacheManager.cs
- OutKeywords.cs
- FormsAuthenticationModule.cs
- ObjectViewQueryResultData.cs
- ZoneButton.cs
- SafeProcessHandle.cs
- XmlArrayAttribute.cs
- FrameworkElement.cs
- ConsoleTraceListener.cs