Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- IsolatedStorageException.cs
- CheckBoxDesigner.cs
- CompoundFileReference.cs
- ContainerVisual.cs
- KeysConverter.cs
- ServiceHttpModule.cs
- Geometry.cs
- ValidatedControlConverter.cs
- DataContext.cs
- Variable.cs
- SQLRoleProvider.cs
- InvalidWMPVersionException.cs
- VirtualizingPanel.cs
- BuiltInExpr.cs
- IPAddressCollection.cs
- Padding.cs
- FormParameter.cs
- PkcsUtils.cs
- AmbientValueAttribute.cs
- VirtualDirectoryMapping.cs
- HierarchicalDataSourceIDConverter.cs
- ScaleTransform.cs
- UserControlDocumentDesigner.cs
- Blend.cs
- WebPartConnectionsEventArgs.cs
- DefaultTypeArgumentAttribute.cs
- XmlSchemaInferenceException.cs
- UmAlQuraCalendar.cs
- RuleSettings.cs
- DataGridTableCollection.cs
- RuntimeConfigLKG.cs
- FormsAuthentication.cs
- SystemIcmpV4Statistics.cs
- WebPartConnectionsCancelVerb.cs
- HttpResponseHeader.cs
- Monitor.cs
- HttpPostServerProtocol.cs
- ProjectionPathSegment.cs
- IFlowDocumentViewer.cs
- TypeUnloadedException.cs
- DataRowChangeEvent.cs
- StateBag.cs
- WindowsTitleBar.cs
- ProvideValueServiceProvider.cs
- SemaphoreFullException.cs
- CodeComment.cs
- SqlDependency.cs
- FormViewPagerRow.cs
- SqlCacheDependencySection.cs
- CustomErrorCollection.cs
- StyleXamlTreeBuilder.cs
- FieldTemplateUserControl.cs
- DecimalConverter.cs
- CursorConverter.cs
- BaseServiceProvider.cs
- NetNamedPipeBinding.cs
- WebPageTraceListener.cs
- ASCIIEncoding.cs
- WhitespaceRuleLookup.cs
- UInt64.cs
- AddInStore.cs
- DataServiceExpressionVisitor.cs
- ThicknessAnimationUsingKeyFrames.cs
- CacheOutputQuery.cs
- TabletDeviceInfo.cs
- StateRuntime.cs
- PerformanceCounterPermissionEntryCollection.cs
- LOSFormatter.cs
- PerspectiveCamera.cs
- InputProviderSite.cs
- XsdBuildProvider.cs
- StartUpEventArgs.cs
- WSSecurityXXX2005.cs
- DefinitionUpdate.cs
- FtpWebResponse.cs
- FormClosedEvent.cs
- Calendar.cs
- SafeNativeMethods.cs
- BaseParaClient.cs
- ColorPalette.cs
- ColorTranslator.cs
- ValidationVisibilityAttribute.cs
- DesignerResources.cs
- MimeFormatter.cs
- MobileControlBuilder.cs
- panel.cs
- IteratorAsyncResult.cs
- LinqDataSourceUpdateEventArgs.cs
- ClickablePoint.cs
- DataGridViewCellStateChangedEventArgs.cs
- FontNamesConverter.cs
- CharKeyFrameCollection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- HttpRawResponse.cs
- Membership.cs
- DependencyProperty.cs
- ValidateNames.cs
- dataprotectionpermissionattribute.cs
- UnionCodeGroup.cs
- Terminate.cs