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
- DataContractSerializerSection.cs
- HtmlWindow.cs
- MetadataArtifactLoaderResource.cs
- mediaeventshelper.cs
- Page.cs
- OleDbEnumerator.cs
- VideoDrawing.cs
- CompositionDesigner.cs
- _TransmitFileOverlappedAsyncResult.cs
- SchemaImporterExtension.cs
- TraceContextRecord.cs
- CopyCodeAction.cs
- UserControlBuildProvider.cs
- Visual3D.cs
- MaterialGroup.cs
- Part.cs
- UserPersonalizationStateInfo.cs
- Stack.cs
- QilExpression.cs
- DataControlField.cs
- SerializerProvider.cs
- MailMessageEventArgs.cs
- EventDrivenDesigner.cs
- TemplateBindingExtension.cs
- RegexGroup.cs
- DependencyObjectType.cs
- ApplicationDirectory.cs
- TimeSpanValidator.cs
- DiagnosticTraceSource.cs
- DisableDpiAwarenessAttribute.cs
- SynchronizedDispatch.cs
- TransactionContextValidator.cs
- Point4DValueSerializer.cs
- SrgsOneOf.cs
- Vector3DCollectionConverter.cs
- DataStreams.cs
- PointCollectionValueSerializer.cs
- Trace.cs
- StateWorkerRequest.cs
- CannotUnloadAppDomainException.cs
- ThrowHelper.cs
- DataBinding.cs
- DependencyPropertyHelper.cs
- GridViewColumnHeaderAutomationPeer.cs
- TextDecorationCollection.cs
- CharAnimationBase.cs
- AdapterUtil.cs
- ListViewItemSelectionChangedEvent.cs
- InvalidContentTypeException.cs
- EnumBuilder.cs
- SemanticAnalyzer.cs
- VisualStateManager.cs
- AsymmetricSignatureFormatter.cs
- SettingsPropertyValue.cs
- ApplicationDirectory.cs
- Condition.cs
- LogicalChannelCollection.cs
- FontStretchConverter.cs
- SignedXml.cs
- CultureSpecificStringDictionary.cs
- ExclusiveHandleList.cs
- ExtendedPropertyCollection.cs
- SpellerHighlightLayer.cs
- MenuCommand.cs
- TargetConverter.cs
- SymbolPair.cs
- InvalidPrinterException.cs
- InkCanvasSelection.cs
- AnnotationAuthorChangedEventArgs.cs
- SubMenuStyle.cs
- RedistVersionInfo.cs
- XslCompiledTransform.cs
- ProviderConnectionPointCollection.cs
- AlignmentXValidation.cs
- InboundActivityHelper.cs
- WebPartDeleteVerb.cs
- CreateDataSourceDialog.cs
- EventListenerClientSide.cs
- ResourceManager.cs
- AssemblyName.cs
- PenLineCapValidation.cs
- Exception.cs
- cookie.cs
- MethodCallConverter.cs
- StandardBindingCollectionElement.cs
- RoutedEventConverter.cs
- VideoDrawing.cs
- ViewStateException.cs
- HandleRef.cs
- MetadataItem_Static.cs
- OdbcUtils.cs
- SizeLimitedCache.cs
- DesignerCalendarAdapter.cs
- MemoryMappedViewAccessor.cs
- DefaultMemberAttribute.cs
- BigInt.cs
- invalidudtexception.cs
- SessionStateItemCollection.cs
- StateMachineHelpers.cs
- RectAnimationBase.cs