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
- GridSplitter.cs
- CodeDOMProvider.cs
- NullableDecimalAverageAggregationOperator.cs
- NamespaceList.cs
- DependencyObjectPropertyDescriptor.cs
- BindToObject.cs
- IQueryable.cs
- TextClipboardData.cs
- ResourcesChangeInfo.cs
- RectangleHotSpot.cs
- NavigationWindow.cs
- MetadataItem_Static.cs
- UrlMappingsModule.cs
- RelationshipEndMember.cs
- SubqueryRules.cs
- EntityDataSourceContextCreatedEventArgs.cs
- GridItemPatternIdentifiers.cs
- PageThemeCodeDomTreeGenerator.cs
- Soap.cs
- ReferencedCollectionType.cs
- TypeRestriction.cs
- LazyTextWriterCreator.cs
- FixedDocumentSequencePaginator.cs
- KeyValueSerializer.cs
- BaseCAMarshaler.cs
- Nodes.cs
- StickyNoteAnnotations.cs
- XamlPoint3DCollectionSerializer.cs
- DataSourceHelper.cs
- ControlAdapter.cs
- FontInfo.cs
- Label.cs
- CodeGeneratorOptions.cs
- RelatedPropertyManager.cs
- SettingsProperty.cs
- AutomationPropertyInfo.cs
- HostedHttpTransportManager.cs
- RoutingBehavior.cs
- PackageFilter.cs
- ProfileInfo.cs
- OdbcConnectionString.cs
- DiagnosticsConfiguration.cs
- MembershipValidatePasswordEventArgs.cs
- ConfigXmlReader.cs
- CommandLineParser.cs
- SystemIPInterfaceStatistics.cs
- SpecialNameAttribute.cs
- PrivilegedConfigurationManager.cs
- safex509handles.cs
- BitmapEffectInputConnector.cs
- SoapExtensionStream.cs
- ParameterToken.cs
- DataGridViewCellMouseEventArgs.cs
- WSFederationHttpSecurity.cs
- ConfigXmlWhitespace.cs
- WebEvents.cs
- EdmToObjectNamespaceMap.cs
- AnnotationService.cs
- DictionaryGlobals.cs
- AuthStoreRoleProvider.cs
- EntityViewGenerator.cs
- TdsRecordBufferSetter.cs
- ProfessionalColorTable.cs
- RuntimeCompatibilityAttribute.cs
- SyndicationItemFormatter.cs
- SinglePageViewer.cs
- OutputChannelBinder.cs
- FontStyle.cs
- TextBoxRenderer.cs
- HtmlTitle.cs
- WebSysDefaultValueAttribute.cs
- PEFileEvidenceFactory.cs
- PlatformCulture.cs
- ThreadStateException.cs
- XmlReader.cs
- PasswordRecovery.cs
- InkCollectionBehavior.cs
- SmtpAuthenticationManager.cs
- TextClipboardData.cs
- TempEnvironment.cs
- TextSpan.cs
- WriteFileContext.cs
- DeploymentSectionCache.cs
- UpdatableWrapper.cs
- CharacterBuffer.cs
- HttpApplicationFactory.cs
- KnownTypesProvider.cs
- InfoCardArgumentException.cs
- ServicePoint.cs
- Tuple.cs
- DateTimeConverter.cs
- CachedPathData.cs
- ActivityDefaults.cs
- Bidi.cs
- TargetException.cs
- MailDefinition.cs
- TemplateXamlTreeBuilder.cs
- BamlRecordHelper.cs
- RunWorkerCompletedEventArgs.cs
- TypeExtensionConverter.cs