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
- CodeCastExpression.cs
- AppliesToBehaviorDecisionTable.cs
- CheckBoxRenderer.cs
- RepeatInfo.cs
- wmiutil.cs
- Parameter.cs
- OrderByBuilder.cs
- FamilyMapCollection.cs
- DetectRunnableInstancesTask.cs
- CompositeFontInfo.cs
- DependentList.cs
- AlphabeticalEnumConverter.cs
- SerialReceived.cs
- OleDbRowUpdatedEvent.cs
- WindowsStatusBar.cs
- TableHeaderCell.cs
- DataListAutoFormat.cs
- DataTemplate.cs
- __ComObject.cs
- DefaultDiscoveryService.cs
- DocumentViewerBaseAutomationPeer.cs
- D3DImage.cs
- AttributeParameterInfo.cs
- AutomationProperties.cs
- HealthMonitoringSection.cs
- Font.cs
- SessionEndedEventArgs.cs
- XsltFunctions.cs
- TdsEnums.cs
- ContentPosition.cs
- CustomValidator.cs
- SID.cs
- InstalledVoice.cs
- DatasetMethodGenerator.cs
- BStrWrapper.cs
- WindowsScroll.cs
- BooleanKeyFrameCollection.cs
- PersonalizationStateInfo.cs
- SvcMapFile.cs
- XXXInfos.cs
- ServiceAppDomainAssociationProvider.cs
- EventlogProvider.cs
- DataServiceRequestOfT.cs
- CompilerParameters.cs
- TextEditor.cs
- ServiceNameElement.cs
- LinqDataSourceSelectEventArgs.cs
- EastAsianLunisolarCalendar.cs
- MachineKeyConverter.cs
- TransformedBitmap.cs
- wgx_render.cs
- ResourcesChangeInfo.cs
- UriExt.cs
- WorkflowHostingEndpoint.cs
- XsdCachingReader.cs
- PenThreadPool.cs
- SystemSounds.cs
- TextSchema.cs
- XmlRawWriter.cs
- ActiveXContainer.cs
- WorkflowValidationFailedException.cs
- WebControl.cs
- XMLSyntaxException.cs
- DataMemberAttribute.cs
- SqlProviderServices.cs
- Binding.cs
- EntityParameter.cs
- DeclarativeCatalogPart.cs
- FontStyleConverter.cs
- MetadataSource.cs
- IgnorePropertiesAttribute.cs
- versioninfo.cs
- RegexEditorDialog.cs
- BaseParaClient.cs
- WindowsNonControl.cs
- XmlSchemaSubstitutionGroup.cs
- EncryptedData.cs
- DependencyPropertyDescriptor.cs
- ObjectPersistData.cs
- SHA512.cs
- BasicCellRelation.cs
- TablePatternIdentifiers.cs
- WindowsAuthenticationEventArgs.cs
- CaseInsensitiveHashCodeProvider.cs
- DataGridViewBindingCompleteEventArgs.cs
- WebPartMovingEventArgs.cs
- ZoneMembershipCondition.cs
- StyleSheetComponentEditor.cs
- ToolStripRendererSwitcher.cs
- UserValidatedEventArgs.cs
- _NetworkingPerfCounters.cs
- ListBase.cs
- MetadataSet.cs
- BitStack.cs
- OleDbWrapper.cs
- HashRepartitionEnumerator.cs
- ObjectHandle.cs
- MethodToken.cs
- TokenBasedSetEnumerator.cs
- BasicDesignerLoader.cs