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
- OciEnlistContext.cs
- HotCommands.cs
- GridView.cs
- RegexStringValidatorAttribute.cs
- WebControl.cs
- ConnectionStringsExpressionBuilder.cs
- CodeMemberField.cs
- SerializeAbsoluteContext.cs
- Canvas.cs
- XPathBinder.cs
- ExpressionList.cs
- JapaneseLunisolarCalendar.cs
- PreviousTrackingServiceAttribute.cs
- XamlSerializationHelper.cs
- Style.cs
- PackagePartCollection.cs
- ItemChangedEventArgs.cs
- TransformedBitmap.cs
- PipelineDeploymentState.cs
- SafeCryptHandles.cs
- LineSegment.cs
- SqlUDTStorage.cs
- ColumnBinding.cs
- RubberbandSelector.cs
- GridViewHeaderRowPresenter.cs
- cookie.cs
- SpecularMaterial.cs
- ThrowHelper.cs
- SinglePageViewer.cs
- BatchWriter.cs
- RootBrowserWindowAutomationPeer.cs
- ISAPIApplicationHost.cs
- StrokeDescriptor.cs
- ErrorWebPart.cs
- ExtensionFile.cs
- FieldBuilder.cs
- DataTrigger.cs
- DataControlImageButton.cs
- Boolean.cs
- ListViewItem.cs
- CardSpaceSelector.cs
- EndpointAddressAugust2004.cs
- GregorianCalendar.cs
- RegistryDataKey.cs
- DefaultValueTypeConverter.cs
- MarkupProperty.cs
- SafeNativeMethodsOther.cs
- XmlDocumentSerializer.cs
- HttpCapabilitiesSectionHandler.cs
- RelOps.cs
- MainMenu.cs
- ThicknessAnimationBase.cs
- InfocardExtendedInformationCollection.cs
- XmlnsCache.cs
- TransformDescriptor.cs
- CodeCatchClauseCollection.cs
- parserscommon.cs
- ObjectReaderCompiler.cs
- SqlLiftIndependentRowExpressions.cs
- EventEntry.cs
- _NegotiateClient.cs
- RightsManagementManager.cs
- RtfControls.cs
- XmlSchemaInferenceException.cs
- AspCompat.cs
- Color.cs
- FlowPosition.cs
- CryptoProvider.cs
- StreamWriter.cs
- SharedConnectionInfo.cs
- EntityDesignPluralizationHandler.cs
- HandlerMappingMemo.cs
- Win32.cs
- Attributes.cs
- WebPartEditorApplyVerb.cs
- MetadataItemEmitter.cs
- AdapterUtil.cs
- Debug.cs
- ArrangedElement.cs
- UIElement3D.cs
- AnnotationResourceCollection.cs
- XmlLangPropertyAttribute.cs
- LiteralControl.cs
- ValidationException.cs
- DBSqlParser.cs
- ISessionStateStore.cs
- ContextDataSource.cs
- ItemCheckedEvent.cs
- MasterPage.cs
- PeerEndPoint.cs
- SubclassTypeValidatorAttribute.cs
- NullableLongSumAggregationOperator.cs
- SignatureHelper.cs
- DataGridCellInfo.cs
- HorizontalAlignConverter.cs
- Point3DCollectionConverter.cs
- DataServiceBehavior.cs
- EventProperty.cs
- DataContractSet.cs
- TreeNodeCollection.cs