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
- StubHelpers.cs
- AutoResizedEvent.cs
- ConfigurationStrings.cs
- TabControl.cs
- AuthenticationConfig.cs
- ArrangedElementCollection.cs
- XmlCharCheckingReader.cs
- OrderedDictionaryStateHelper.cs
- DetailsViewPageEventArgs.cs
- DataReaderContainer.cs
- EventLogException.cs
- ModelTreeManager.cs
- CompilerWrapper.cs
- Constraint.cs
- UnescapedXmlDiagnosticData.cs
- TextModifierScope.cs
- Effect.cs
- ConfigurationPermission.cs
- Transform.cs
- ListView.cs
- ProviderBase.cs
- HelpProvider.cs
- RuleSetCollection.cs
- TextContainerHelper.cs
- METAHEADER.cs
- DataGridViewCellFormattingEventArgs.cs
- MappingSource.cs
- RemotingSurrogateSelector.cs
- RightsManagementErrorHandler.cs
- DelayDesigner.cs
- ListBox.cs
- ProfileGroupSettings.cs
- BindingWorker.cs
- CodeChecksumPragma.cs
- KeyTimeConverter.cs
- HtmlGenericControl.cs
- FileSystemEventArgs.cs
- InputLanguageManager.cs
- EpmAttributeNameBuilder.cs
- StatusBar.cs
- GC.cs
- KeyboardEventArgs.cs
- ProfilePropertyNameValidator.cs
- MDIClient.cs
- NonBatchDirectoryCompiler.cs
- Ray3DHitTestResult.cs
- XPathParser.cs
- NavigationProperty.cs
- Attributes.cs
- PathSegmentCollection.cs
- TemplateInstanceAttribute.cs
- PingReply.cs
- HttpCapabilitiesEvaluator.cs
- WebPartEventArgs.cs
- SecurityChannelListener.cs
- SlotInfo.cs
- SettingsPropertyWrongTypeException.cs
- MatrixKeyFrameCollection.cs
- SourceFileBuildProvider.cs
- BaseCAMarshaler.cs
- Transactions.cs
- VisualCollection.cs
- DocumentsTrace.cs
- PropertyOverridesTypeEditor.cs
- TypefaceCollection.cs
- ParserStreamGeometryContext.cs
- KeyFrames.cs
- SecurityDocument.cs
- ExpressionLink.cs
- CapabilitiesPattern.cs
- URL.cs
- SingleResultAttribute.cs
- XmlText.cs
- KeyValuePairs.cs
- EdmComplexPropertyAttribute.cs
- DefaultWorkflowSchedulerService.cs
- WebAdminConfigurationHelper.cs
- FutureFactory.cs
- XmlSchemaSimpleType.cs
- FormViewPageEventArgs.cs
- ListSortDescriptionCollection.cs
- ItemsControlAutomationPeer.cs
- XmlEncoding.cs
- BuildProviderCollection.cs
- DiffuseMaterial.cs
- HostedNamedPipeTransportManager.cs
- KeyGestureConverter.cs
- StringKeyFrameCollection.cs
- RoleServiceManager.cs
- XmlSchemaInfo.cs
- HttpApplicationFactory.cs
- LockCookie.cs
- StringFunctions.cs
- SafeSecurityHelper.cs
- SystemWebSectionGroup.cs
- Model3DGroup.cs
- SkewTransform.cs
- BasicCellRelation.cs
- StringKeyFrameCollection.cs
- ExpressionConverter.cs