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
- PinnedBufferMemoryStream.cs
- HttpCacheVary.cs
- MeshGeometry3D.cs
- SQLUtility.cs
- FirstQueryOperator.cs
- CodeChecksumPragma.cs
- SqlConnectionPoolProviderInfo.cs
- SimpleHandlerBuildProvider.cs
- ObsoleteAttribute.cs
- XmlTextReaderImplHelpers.cs
- wmiprovider.cs
- XmlSchemaSet.cs
- ReferentialConstraint.cs
- DataGridViewElement.cs
- PropertyInfoSet.cs
- BaseProcessor.cs
- ServiceBuildProvider.cs
- ToolStripItemTextRenderEventArgs.cs
- OpenFileDialog.cs
- TextRunCache.cs
- OleDbWrapper.cs
- CodePageUtils.cs
- ChannelBuilder.cs
- PermissionSet.cs
- InProcStateClientManager.cs
- RadialGradientBrush.cs
- StatusBarPanelClickEvent.cs
- Visitor.cs
- RemoteArgument.cs
- JsonFormatReaderGenerator.cs
- DataServiceRequestException.cs
- AutoGeneratedFieldProperties.cs
- DistributedTransactionPermission.cs
- ItemMap.cs
- DropDownButton.cs
- ActivityWithResultValueSerializer.cs
- MethodImplAttribute.cs
- ServiceOperationHelpers.cs
- JumpPath.cs
- DocComment.cs
- InvokeWebService.cs
- EntityReference.cs
- ImportedNamespaceContextItem.cs
- SqlBooleanMismatchVisitor.cs
- TableItemProviderWrapper.cs
- DrawingContextWalker.cs
- XmlAnyElementAttribute.cs
- DataBoundLiteralControl.cs
- RightsManagementEncryptedStream.cs
- MimeWriter.cs
- ConvertEvent.cs
- GradientStop.cs
- JoinSymbol.cs
- MessageQueueCriteria.cs
- ConfigurationValidatorAttribute.cs
- AssemblyBuilder.cs
- PolicyManager.cs
- ACE.cs
- TTSEngineTypes.cs
- TableLayout.cs
- EntityCommandExecutionException.cs
- LazyTextWriterCreator.cs
- ApplicationBuildProvider.cs
- MissingMemberException.cs
- QueryableFilterRepeater.cs
- CheckableControlBaseAdapter.cs
- TextEditorSelection.cs
- StatusBarPanel.cs
- DefinitionBase.cs
- CustomGrammar.cs
- MSHTMLHost.cs
- TransformerTypeCollection.cs
- EditorPartChrome.cs
- SqlDataSourceQueryEditor.cs
- XmlNode.cs
- DecimalKeyFrameCollection.cs
- DesignParameter.cs
- RetrieveVirtualItemEventArgs.cs
- SerializationHelper.cs
- TextSchema.cs
- FileReservationCollection.cs
- _NegotiateClient.cs
- TextView.cs
- GlyphRunDrawing.cs
- SR.cs
- TextTreePropertyUndoUnit.cs
- CodeTypeOfExpression.cs
- CloseCryptoHandleRequest.cs
- HighlightVisual.cs
- XsltOutput.cs
- PathFigureCollection.cs
- StrokeCollectionDefaultValueFactory.cs
- ExtendedPropertyDescriptor.cs
- InputLanguageProfileNotifySink.cs
- MorphHelper.cs
- oledbconnectionstring.cs
- DocumentViewerBaseAutomationPeer.cs
- VersionedStreamOwner.cs
- _DomainName.cs
- DataRowView.cs