Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeAttachEventStatement.cs / 1 / CodeAttachEventStatement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ////// [ 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. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ////// [ 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
- CodeSubDirectory.cs
- SurrogateEncoder.cs
- ObjectViewFactory.cs
- PathData.cs
- DataGridHelper.cs
- DataList.cs
- DLinqColumnProvider.cs
- oledbmetadatacolumnnames.cs
- Button.cs
- SystemResources.cs
- UIAgentInitializationException.cs
- ContainerActivationHelper.cs
- TargetFrameworkAttribute.cs
- DrawingDrawingContext.cs
- VersionedStreamOwner.cs
- WebPartRestoreVerb.cs
- X509CertificateValidator.cs
- HttpCapabilitiesEvaluator.cs
- TextTrailingCharacterEllipsis.cs
- PeerNodeAddress.cs
- AccessDataSourceView.cs
- Attributes.cs
- DataObject.cs
- AvTraceDetails.cs
- ProbeMatchesCD1.cs
- CodeMethodMap.cs
- TextMessageEncodingElement.cs
- BaseParser.cs
- Vector3DCollectionConverter.cs
- DrawingVisual.cs
- SelectionItemPattern.cs
- Int64Converter.cs
- WriteStateInfoBase.cs
- ComponentCodeDomSerializer.cs
- NonSerializedAttribute.cs
- HtmlInputCheckBox.cs
- DbConnectionPoolOptions.cs
- TableSectionStyle.cs
- TextPointer.cs
- WorkflowStateRollbackService.cs
- TraceUtils.cs
- RC2.cs
- XmlWriter.cs
- Symbol.cs
- Propagator.ExtentPlaceholderCreator.cs
- EntityContainer.cs
- PrintEvent.cs
- util.cs
- AuthorizationRuleCollection.cs
- CachedTypeface.cs
- FrameDimension.cs
- InvalidCommandTreeException.cs
- TextEffectResolver.cs
- ColorTransformHelper.cs
- ToggleButton.cs
- Vector3D.cs
- DatePickerAutomationPeer.cs
- Stroke.cs
- BitmapInitialize.cs
- XmlUnspecifiedAttribute.cs
- SoapFault.cs
- HttpAsyncResult.cs
- FileDataSourceCache.cs
- HttpRequestCacheValidator.cs
- EntityDataSourceSelectedEventArgs.cs
- PhonemeConverter.cs
- SoundPlayerAction.cs
- FileClassifier.cs
- GeometryHitTestResult.cs
- IssuanceTokenProviderState.cs
- SecurityDocument.cs
- DefaultTextStore.cs
- InputLanguageEventArgs.cs
- dataprotectionpermissionattribute.cs
- HyperLinkColumn.cs
- SubpageParagraph.cs
- SqlInfoMessageEvent.cs
- DispatcherFrame.cs
- RTLAwareMessageBox.cs
- ValidationPropertyAttribute.cs
- DependencyPropertyKind.cs
- EntityModelBuildProvider.cs
- DesignRelationCollection.cs
- unsafenativemethodsother.cs
- ConfigurationValues.cs
- Scheduler.cs
- SourceFilter.cs
- ChannelServices.cs
- SamlAction.cs
- MergablePropertyAttribute.cs
- GradientSpreadMethodValidation.cs
- TimersDescriptionAttribute.cs
- CachedRequestParams.cs
- Activator.cs
- DataPager.cs
- DataListGeneralPage.cs
- HtmlPhoneCallAdapter.cs
- FormCollection.cs
- DropShadowEffect.cs
- ZipIOEndOfCentralDirectoryBlock.cs