Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeAttachEventStatement.cs / 1305376 / CodeAttachEventStatement.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeAttachEventStatement : CodeStatement { private CodeEventReferenceExpression eventRef; private CodeExpression listener; ////// Represents a event attach statement. /// ////// public CodeAttachEventStatement() { } ////// Initializes a new instance of ///. /// /// public CodeAttachEventStatement(CodeEventReferenceExpression eventRef, CodeExpression listener) { this.eventRef = eventRef; this.listener = listener; } ////// Initializes a new instance of the ///class using the specified arguments. /// /// public CodeAttachEventStatement(CodeExpression targetObject, string eventName, CodeExpression listener) { this.eventRef = new CodeEventReferenceExpression(targetObject, eventName); this.listener = listener; } ///[To be supplied.] ////// public CodeEventReferenceExpression Event { get { if (eventRef == null) { return new CodeEventReferenceExpression(); } return eventRef; } set { eventRef = value; } } ////// The event to attach a listener to. /// ////// public CodeExpression Listener { get { return listener; } set { listener = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// The new listener. /// ///// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeAttachEventStatement : CodeStatement { private CodeEventReferenceExpression eventRef; private CodeExpression listener; ////// Represents a event attach statement. /// ////// public CodeAttachEventStatement() { } ////// Initializes a new instance of ///. /// /// public CodeAttachEventStatement(CodeEventReferenceExpression eventRef, CodeExpression listener) { this.eventRef = eventRef; this.listener = listener; } ////// Initializes a new instance of the ///class using the specified arguments. /// /// public CodeAttachEventStatement(CodeExpression targetObject, string eventName, CodeExpression listener) { this.eventRef = new CodeEventReferenceExpression(targetObject, eventName); this.listener = listener; } ///[To be supplied.] ////// public CodeEventReferenceExpression Event { get { if (eventRef == null) { return new CodeEventReferenceExpression(); } return eventRef; } set { eventRef = value; } } ////// The event to attach a listener to. /// ////// public CodeExpression Listener { get { return listener; } set { listener = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// The new listener. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TemplatePropertyEntry.cs
- IssuedTokensHeader.cs
- PackagePartCollection.cs
- SplashScreen.cs
- InkCanvasAutomationPeer.cs
- TemplateControlParser.cs
- SystemGatewayIPAddressInformation.cs
- TreeViewEvent.cs
- ProfessionalColors.cs
- MarkupObject.cs
- DTCTransactionManager.cs
- ProfileServiceManager.cs
- NamedObject.cs
- SendActivity.cs
- Logging.cs
- TypeUsage.cs
- DataColumnChangeEvent.cs
- TreeNodeEventArgs.cs
- SelectionPattern.cs
- Italic.cs
- SystemIcmpV4Statistics.cs
- NavigationService.cs
- DocobjHost.cs
- BitmapSource.cs
- XsltArgumentList.cs
- ArgumentsParser.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- OrderedDictionary.cs
- RowType.cs
- HtmlInputReset.cs
- BasicCellRelation.cs
- EntitySqlQueryState.cs
- SelectionWordBreaker.cs
- WpfWebRequestHelper.cs
- HtmlInputSubmit.cs
- FocusTracker.cs
- DesignerActionUIStateChangeEventArgs.cs
- EncoderFallback.cs
- cookieexception.cs
- _Events.cs
- ClientTargetSection.cs
- ChtmlTextWriter.cs
- TextEditorDragDrop.cs
- ObjectViewQueryResultData.cs
- TraceHandler.cs
- Window.cs
- TextHidden.cs
- WebServiceMethodData.cs
- Point3DKeyFrameCollection.cs
- ObjectSecurity.cs
- SpeechSynthesizer.cs
- HttpCachePolicyBase.cs
- XamlVector3DCollectionSerializer.cs
- PriorityItem.cs
- OleDbMetaDataFactory.cs
- ToolTipAutomationPeer.cs
- DoubleCollection.cs
- TemplatingOptionsDialog.cs
- ConfigurationManager.cs
- KeyInstance.cs
- ServiceModelSecurityTokenTypes.cs
- HtmlFormWrapper.cs
- Speller.cs
- PartitionResolver.cs
- FormViewUpdatedEventArgs.cs
- TransactionValidationBehavior.cs
- AttributeCollection.cs
- DataListCommandEventArgs.cs
- CaseInsensitiveHashCodeProvider.cs
- DragDeltaEventArgs.cs
- CssTextWriter.cs
- TimeoutException.cs
- AutomationPatternInfo.cs
- COM2ComponentEditor.cs
- WorkflowMessageEventArgs.cs
- RightsManagementEncryptionTransform.cs
- Stackframe.cs
- MessageRpc.cs
- GestureRecognitionResult.cs
- DriveNotFoundException.cs
- XamlVector3DCollectionSerializer.cs
- InvokeGenerator.cs
- FileSystemEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- SynchronizationContext.cs
- InstanceCreationEditor.cs
- TreeViewBindingsEditorForm.cs
- ToolStripSystemRenderer.cs
- SerializationException.cs
- EntityContainerRelationshipSet.cs
- PrePrepareMethodAttribute.cs
- BindingNavigator.cs
- DataGridDetailsPresenterAutomationPeer.cs
- BaseAutoFormat.cs
- ListSortDescription.cs
- InstalledVoice.cs
- PagedDataSource.cs
- BitmapPalette.cs
- Timeline.cs
- DocumentXmlWriter.cs