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
- PixelShader.cs
- EnumCodeDomSerializer.cs
- DataObjectEventArgs.cs
- PublishLicense.cs
- RoutedCommand.cs
- PropertyValueChangedEvent.cs
- ApplicationException.cs
- DiscoveryInnerClientAdhocCD1.cs
- DataTableReader.cs
- TableItemStyle.cs
- DataGridAddNewRow.cs
- EventlogProvider.cs
- ByteStreamMessageEncoderFactory.cs
- XPathDocumentBuilder.cs
- WindowsFont.cs
- SecureEnvironment.cs
- HostVisual.cs
- ObjectListCommandEventArgs.cs
- SQLBoolean.cs
- ObjectDataSourceStatusEventArgs.cs
- TextElementEnumerator.cs
- RotateTransform3D.cs
- DataGridViewElement.cs
- AdPostCacheSubstitution.cs
- DependencyPropertyConverter.cs
- Sorting.cs
- AsnEncodedData.cs
- SqlMetaData.cs
- CaseInsensitiveHashCodeProvider.cs
- TextRunCacheImp.cs
- XmlSchemaObjectTable.cs
- StrongNameIdentityPermission.cs
- ProfileParameter.cs
- TraceSection.cs
- ClientRoleProvider.cs
- TableSectionStyle.cs
- DataReceivedEventArgs.cs
- XmlRawWriterWrapper.cs
- TextElementEnumerator.cs
- ListItemDetailViewAttribute.cs
- DotExpr.cs
- ThreadSafeList.cs
- XhtmlBasicTextViewAdapter.cs
- DockProviderWrapper.cs
- DataListDesigner.cs
- mactripleDES.cs
- IdentitySection.cs
- DbProviderFactories.cs
- PathFigureCollectionValueSerializer.cs
- RegexFCD.cs
- XamlGridLengthSerializer.cs
- comcontractssection.cs
- TypeToken.cs
- PathGradientBrush.cs
- ScrollBar.cs
- DataGridCommandEventArgs.cs
- PlatformNotSupportedException.cs
- NameScopePropertyAttribute.cs
- BrowserCapabilitiesCompiler.cs
- DbConnectionPoolIdentity.cs
- ApplicationCommands.cs
- CopyAttributesAction.cs
- CmsInterop.cs
- AnnotationService.cs
- TextSimpleMarkerProperties.cs
- CellRelation.cs
- Command.cs
- XmlSchemaObjectTable.cs
- ResolvedKeyFrameEntry.cs
- ListBox.cs
- PackWebRequestFactory.cs
- DigestTraceRecordHelper.cs
- ObjectQueryState.cs
- AsyncOperationContext.cs
- SdlChannelSink.cs
- DataGridViewCheckBoxCell.cs
- InheritanceContextChangedEventManager.cs
- Wildcard.cs
- EditorOptionAttribute.cs
- ResourceExpressionBuilder.cs
- Helper.cs
- ObjectParameterCollection.cs
- ControlEvent.cs
- DataListItemCollection.cs
- LicenseContext.cs
- WindowsPen.cs
- ITreeGenerator.cs
- RectIndependentAnimationStorage.cs
- XamlHttpHandlerFactory.cs
- HostingPreferredMapPath.cs
- MessageSmuggler.cs
- SqlInternalConnectionSmi.cs
- NameValuePermission.cs
- TemplateBamlRecordReader.cs
- ApplyTemplatesAction.cs
- FormatConvertedBitmap.cs
- KeyEventArgs.cs
- BindingBase.cs
- RegexCode.cs
- EdmSchemaAttribute.cs