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 / ComponentModel / EventDescriptor.cs / 1 / EventDescriptor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Reflection; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] [System.Runtime.InteropServices.ComVisible(true)] public abstract class EventDescriptor : MemberDescriptor { ////// Provides a description /// of an event. /// ////// protected EventDescriptor(string name, Attribute[] attrs) : base(name, attrs) { } ////// Initializes a new instance of the ///class with the /// specified name and attribute /// array. /// /// protected EventDescriptor(MemberDescriptor descr) : base(descr) { } ////// Initializes a new instance of the ///class with the name and attributes in /// the specified /// . /// /// protected EventDescriptor(MemberDescriptor descr, Attribute[] attrs) : base(descr, attrs) { } ////// Initializes a new instance of the ///class with /// the name in the specified and the /// attributes in both the and the /// array. /// /// public abstract Type ComponentType { get; } ////// When overridden in a derived /// class, /// gets the type of the component this event is bound to. /// ////// public abstract Type EventType { get; } ////// When overridden in a derived /// class, gets the type of delegate for the event. /// ////// public abstract bool IsMulticast { get; } ////// When overridden in a derived class, gets a value /// indicating whether the event delegate is a multicast /// delegate. /// ////// public abstract void AddEventHandler(object component, Delegate value); ////// When overridden in /// a derived class, /// binds the event to the component. /// ////// public abstract void RemoveEventHandler(object component, Delegate value); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// When /// overridden /// in a derived class, unbinds the delegate from the /// component /// so that the delegate will no /// longer receive events from the component. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Reflection; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] [System.Runtime.InteropServices.ComVisible(true)] public abstract class EventDescriptor : MemberDescriptor { ////// Provides a description /// of an event. /// ////// protected EventDescriptor(string name, Attribute[] attrs) : base(name, attrs) { } ////// Initializes a new instance of the ///class with the /// specified name and attribute /// array. /// /// protected EventDescriptor(MemberDescriptor descr) : base(descr) { } ////// Initializes a new instance of the ///class with the name and attributes in /// the specified /// . /// /// protected EventDescriptor(MemberDescriptor descr, Attribute[] attrs) : base(descr, attrs) { } ////// Initializes a new instance of the ///class with /// the name in the specified and the /// attributes in both the and the /// array. /// /// public abstract Type ComponentType { get; } ////// When overridden in a derived /// class, /// gets the type of the component this event is bound to. /// ////// public abstract Type EventType { get; } ////// When overridden in a derived /// class, gets the type of delegate for the event. /// ////// public abstract bool IsMulticast { get; } ////// When overridden in a derived class, gets a value /// indicating whether the event delegate is a multicast /// delegate. /// ////// public abstract void AddEventHandler(object component, Delegate value); ////// When overridden in /// a derived class, /// binds the event to the component. /// ////// public abstract void RemoveEventHandler(object component, Delegate value); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// When /// overridden /// in a derived class, unbinds the delegate from the /// component /// so that the delegate will no /// longer receive events from the component. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ControlBindingsCollection.cs
- DebugHandleTracker.cs
- OrderByQueryOptionExpression.cs
- MethodBody.cs
- DataGridParentRows.cs
- FileInfo.cs
- RegionInfo.cs
- SecurityTokenException.cs
- RectAnimationClockResource.cs
- Native.cs
- XmlSchemaRedefine.cs
- AnnotationAuthorChangedEventArgs.cs
- CheckBoxBaseAdapter.cs
- RadioButtonRenderer.cs
- PointKeyFrameCollection.cs
- TextSpan.cs
- RtfNavigator.cs
- Validator.cs
- odbcmetadatacollectionnames.cs
- DataGridViewTextBoxCell.cs
- FilteredAttributeCollection.cs
- AbstractExpressions.cs
- DeclarativeCatalogPart.cs
- LinearGradientBrush.cs
- WindowsFormsHost.cs
- ReflectTypeDescriptionProvider.cs
- MessageSecurityOverTcp.cs
- XmlCharType.cs
- FormViewPagerRow.cs
- CheckBoxAutomationPeer.cs
- ListParaClient.cs
- StoryFragments.cs
- DateRangeEvent.cs
- X509Utils.cs
- CursorConverter.cs
- HostingEnvironmentSection.cs
- HttpConfigurationContext.cs
- TemplatedAdorner.cs
- WebUtility.cs
- StaticFileHandler.cs
- CurrentChangedEventManager.cs
- RawStylusInputReport.cs
- ApplicationInfo.cs
- CookieProtection.cs
- CacheSection.cs
- SqlTypeSystemProvider.cs
- TypeReference.cs
- ComAdminWrapper.cs
- VerticalAlignConverter.cs
- BackgroundFormatInfo.cs
- XmlSignatureProperties.cs
- LZCodec.cs
- InputReportEventArgs.cs
- UpdateProgress.cs
- StringExpressionSet.cs
- MemberDomainMap.cs
- ListBoxAutomationPeer.cs
- FrameworkContentElementAutomationPeer.cs
- OneOfConst.cs
- PKCS1MaskGenerationMethod.cs
- SMSvcHost.cs
- TemplateModeChangedEventArgs.cs
- TextRangeEditLists.cs
- HandledEventArgs.cs
- DataBindingHandlerAttribute.cs
- ComponentChangingEvent.cs
- Internal.cs
- MimeFormReflector.cs
- SqlDependencyListener.cs
- WorkflowInstanceExtensionManager.cs
- CellLabel.cs
- ImageCodecInfo.cs
- AsyncOperationContext.cs
- WebPartTracker.cs
- ConfigurationValidatorBase.cs
- COM2PropertyPageUITypeConverter.cs
- UrlAuthFailedErrorFormatter.cs
- Attributes.cs
- DbProviderFactoriesConfigurationHandler.cs
- GraphicsContext.cs
- DataGridViewCellMouseEventArgs.cs
- CommandField.cs
- ImageUrlEditor.cs
- Selection.cs
- EndpointAddressAugust2004.cs
- FontStretchConverter.cs
- HttpListenerResponse.cs
- TableCellCollection.cs
- FontWeight.cs
- ConfigurationPermission.cs
- CorrelationService.cs
- SqlDependencyListener.cs
- DragDropHelper.cs
- GiveFeedbackEventArgs.cs
- SqlInfoMessageEvent.cs
- FormsIdentity.cs
- XmlSchemaDocumentation.cs
- SafePEFileHandle.cs
- RadialGradientBrush.cs
- XamlWriter.cs