Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PartitionResolver.cs
- templategroup.cs
- RegexMatch.cs
- EUCJPEncoding.cs
- X509ChainElement.cs
- DefaultHttpHandler.cs
- SingleAnimationBase.cs
- AuthenticationModuleElement.cs
- HostingEnvironmentException.cs
- WebServiceClientProxyGenerator.cs
- FileDialog.cs
- NamespaceEmitter.cs
- ListViewHitTestInfo.cs
- SequentialWorkflowRootDesigner.cs
- COSERVERINFO.cs
- Themes.cs
- Marshal.cs
- RNGCryptoServiceProvider.cs
- FlowDecision.cs
- FilteredReadOnlyMetadataCollection.cs
- EmptyStringExpandableObjectConverter.cs
- PeerNameRecord.cs
- Polyline.cs
- DES.cs
- XmlElementList.cs
- InternalConfigEventArgs.cs
- StateManagedCollection.cs
- MemberHolder.cs
- ComponentSerializationService.cs
- SqlNotificationRequest.cs
- iisPickupDirectory.cs
- PropertyEntry.cs
- ServicesUtilities.cs
- EmptyEnumerable.cs
- XDRSchema.cs
- WebBaseEventKeyComparer.cs
- PluralizationServiceUtil.cs
- CustomSignedXml.cs
- CustomExpression.cs
- DetailsViewUpdateEventArgs.cs
- FrameworkElementFactory.cs
- ReadOnlyMetadataCollection.cs
- RtfToXamlReader.cs
- unsafenativemethodstextservices.cs
- UnmanagedMemoryStream.cs
- OutputCacheSettings.cs
- UniqueEventHelper.cs
- MdiWindowListStrip.cs
- IgnorePropertiesAttribute.cs
- WorkItem.cs
- CompModSwitches.cs
- CodeThrowExceptionStatement.cs
- SafeNativeMethods.cs
- RedistVersionInfo.cs
- DeferredElementTreeState.cs
- CacheMode.cs
- SqlException.cs
- Root.cs
- DataGrid.cs
- Row.cs
- Menu.cs
- _ProxyRegBlob.cs
- controlskin.cs
- EventWaitHandleSecurity.cs
- Facet.cs
- JoinElimination.cs
- RolePrincipal.cs
- hresults.cs
- GridViewRowEventArgs.cs
- WebPartActionVerb.cs
- XmlSchemaFacet.cs
- DesignerResources.cs
- IndicFontClient.cs
- WebDisplayNameAttribute.cs
- XmlSchemaFacet.cs
- AppDomainProtocolHandler.cs
- EventLogEntryCollection.cs
- PropertyItem.cs
- Internal.cs
- SimpleApplicationHost.cs
- ThousandthOfEmRealPoints.cs
- BindingExpression.cs
- _SSPIWrapper.cs
- MetafileHeaderWmf.cs
- SourceChangedEventArgs.cs
- VectorCollectionConverter.cs
- LabelLiteral.cs
- XmlArrayItemAttribute.cs
- ParentQuery.cs
- NumberFormatInfo.cs
- ModelPerspective.cs
- Win32PrintDialog.cs
- InstanceOwner.cs
- AppDomain.cs
- WebHostUnsafeNativeMethods.cs
- ActivityCodeGenerator.cs
- DynamicPropertyHolder.cs
- SimpleMailWebEventProvider.cs
- TraceListeners.cs
- Int16AnimationBase.cs