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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RequestCachingSection.cs
- DecimalConstantAttribute.cs
- PageTheme.cs
- ResXResourceWriter.cs
- TextSyndicationContent.cs
- DataGridViewCellStyleBuilderDialog.cs
- ContextMenu.cs
- HttpHeaderCollection.cs
- SecurityContext.cs
- DbLambda.cs
- Merger.cs
- BaseTemplateBuildProvider.cs
- NamespaceEmitter.cs
- StorageInfo.cs
- WSSecurityPolicy12.cs
- XmlSchemaSet.cs
- Attributes.cs
- PolyLineSegmentFigureLogic.cs
- RootAction.cs
- CodeConditionStatement.cs
- InheritablePropertyChangeInfo.cs
- ChtmlCalendarAdapter.cs
- WindowsFormsHost.cs
- OutputCacheModule.cs
- SoapIgnoreAttribute.cs
- FixUpCollection.cs
- ObjectViewEntityCollectionData.cs
- DataGridViewCellCancelEventArgs.cs
- DesignerDataParameter.cs
- DataServiceHost.cs
- TabControlAutomationPeer.cs
- DefaultParameterValueAttribute.cs
- PropertyRecord.cs
- PieceNameHelper.cs
- TableRow.cs
- HostExecutionContextManager.cs
- DataGridAutomationPeer.cs
- SlotInfo.cs
- UnSafeCharBuffer.cs
- NopReturnReader.cs
- ToolStripDropDownClosingEventArgs.cs
- precedingquery.cs
- FontInfo.cs
- SharedPerformanceCounter.cs
- ComplexTypeEmitter.cs
- IListConverters.cs
- StatusStrip.cs
- HttpListenerResponse.cs
- GridErrorDlg.cs
- TextServicesPropertyRanges.cs
- XmlHierarchicalDataSourceView.cs
- LogicalCallContext.cs
- FormattedTextSymbols.cs
- HelpInfo.cs
- ObjectReaderCompiler.cs
- UnionExpr.cs
- GraphicsPath.cs
- SafeLocalMemHandle.cs
- HttpApplication.cs
- DocumentPageHost.cs
- HtmlInputCheckBox.cs
- SafeEventLogReadHandle.cs
- EditCommandColumn.cs
- DataSourceXmlAttributeAttribute.cs
- NumericUpDownAccelerationCollection.cs
- QuaternionAnimationBase.cs
- OutputScope.cs
- HttpCachePolicyElement.cs
- WebBrowsableAttribute.cs
- OleDbFactory.cs
- CodeCatchClause.cs
- HttpCacheVaryByContentEncodings.cs
- Button.cs
- WSDualHttpBindingCollectionElement.cs
- Sentence.cs
- DaylightTime.cs
- TraceContextRecord.cs
- CharacterBuffer.cs
- ContactManager.cs
- IgnoreFlushAndCloseStream.cs
- AttributeXamlType.cs
- Int16.cs
- RepeaterItemCollection.cs
- ResourcesBuildProvider.cs
- Pkcs7Signer.cs
- PageThemeCodeDomTreeGenerator.cs
- StylusCollection.cs
- FloaterParaClient.cs
- PrintEvent.cs
- JavascriptCallbackMessageInspector.cs
- ViewSimplifier.cs
- KoreanCalendar.cs
- dataSvcMapFileLoader.cs
- BackgroundWorker.cs
- WebContext.cs
- ValidatingReaderNodeData.cs
- WebEventTraceProvider.cs
- EncodingDataItem.cs
- WebServiceErrorEvent.cs
- XPathNodeIterator.cs