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
- BrowserTree.cs
- XmlSchemaObjectCollection.cs
- DataColumnChangeEvent.cs
- CodeSpit.cs
- SearchForVirtualItemEventArgs.cs
- StylusPointPropertyInfoDefaults.cs
- WebPartCatalogCloseVerb.cs
- AmbientValueAttribute.cs
- ADMembershipProvider.cs
- MetafileHeaderWmf.cs
- GPRECTF.cs
- COM2PropertyDescriptor.cs
- CheckBoxField.cs
- StorageConditionPropertyMapping.cs
- TimeSpanOrInfiniteValidator.cs
- QilPatternFactory.cs
- GridViewRowEventArgs.cs
- StoreItemCollection.cs
- designeractionlistschangedeventargs.cs
- AssociationSetMetadata.cs
- TagPrefixCollection.cs
- GeneralTransform2DTo3DTo2D.cs
- UnmanagedMemoryStreamWrapper.cs
- State.cs
- ComboBoxItem.cs
- UTF7Encoding.cs
- Animatable.cs
- DetailsViewInsertEventArgs.cs
- EmissiveMaterial.cs
- StreamSecurityUpgradeAcceptorBase.cs
- ConfigurationManagerHelper.cs
- InvokeMethod.cs
- DiagnosticTrace.cs
- QueueNameHelper.cs
- SystemResourceHost.cs
- Pointer.cs
- ChangeBlockUndoRecord.cs
- ButtonAutomationPeer.cs
- ConditionalAttribute.cs
- DbDataReader.cs
- MetadataItem.cs
- SimpleTypesSurrogate.cs
- CustomCategoryAttribute.cs
- TableRow.cs
- Stroke2.cs
- Filter.cs
- GridItemPatternIdentifiers.cs
- ParameterCollection.cs
- SspiNegotiationTokenAuthenticatorState.cs
- MessagePropertyFilter.cs
- Internal.cs
- CellIdBoolean.cs
- MultiSelectRootGridEntry.cs
- FrameSecurityDescriptor.cs
- FormsAuthenticationModule.cs
- BitmapDecoder.cs
- CommonXSendMessage.cs
- ExtensionWindow.cs
- Win32.cs
- NativeMethods.cs
- FolderBrowserDialog.cs
- MultipleViewPattern.cs
- MultiAsyncResult.cs
- ThreadExceptionDialog.cs
- GridViewRowCollection.cs
- PageThemeCodeDomTreeGenerator.cs
- ReturnValue.cs
- InternalMappingException.cs
- PartialList.cs
- InternalSafeNativeMethods.cs
- CompatibleIComparer.cs
- WebScriptEnablingElement.cs
- SapiAttributeParser.cs
- OrderedDictionary.cs
- BinaryParser.cs
- Array.cs
- ObjectToken.cs
- Compiler.cs
- AsyncCompletedEventArgs.cs
- WorkflowInstance.cs
- WebUtil.cs
- DataBindingValueUIHandler.cs
- SystemIcmpV4Statistics.cs
- AnnotationResourceChangedEventArgs.cs
- AsynchronousChannelMergeEnumerator.cs
- RsaEndpointIdentity.cs
- StrokeCollectionConverter.cs
- BindingSourceDesigner.cs
- WebPartConnectionsConnectVerb.cs
- RadialGradientBrush.cs
- XmlReflectionMember.cs
- ClientType.cs
- diagnosticsswitches.cs
- XmlnsDefinitionAttribute.cs
- DataKey.cs
- ExtenderProvidedPropertyAttribute.cs
- WsdlInspector.cs
- SerializationObjectManager.cs
- TextServicesContext.cs
- TextClipboardData.cs