Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / EventDescriptor.cs / 1305376 / 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
- SqlUnionizer.cs
- SafeHandles.cs
- Help.cs
- ImportCatalogPart.cs
- sqlnorm.cs
- SamlAssertionKeyIdentifierClause.cs
- RelatedCurrencyManager.cs
- Point3DAnimationUsingKeyFrames.cs
- ContentControl.cs
- RTLAwareMessageBox.cs
- WmlCommandAdapter.cs
- ParallelDesigner.cs
- DataGridViewRowStateChangedEventArgs.cs
- TextDecorationCollection.cs
- PrintPreviewGraphics.cs
- RawKeyboardInputReport.cs
- RegexNode.cs
- StylusPoint.cs
- CellQuery.cs
- DiscoveryMessageSequence.cs
- SHA512Cng.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- ControlAdapter.cs
- UInt16.cs
- IpcClientManager.cs
- SafeSystemMetrics.cs
- DockingAttribute.cs
- AncillaryOps.cs
- ChannelReliableSession.cs
- DocumentPageViewAutomationPeer.cs
- XmlRootAttribute.cs
- Misc.cs
- brushes.cs
- EntityClassGenerator.cs
- ScrollContentPresenter.cs
- RtfNavigator.cs
- SqlInternalConnection.cs
- SafeEventLogReadHandle.cs
- EpmSourceTree.cs
- VirtualPath.cs
- EventProvider.cs
- AccessViolationException.cs
- ConnectionProviderAttribute.cs
- GridView.cs
- BlockUIContainer.cs
- SQLInt64.cs
- MethodRental.cs
- ThaiBuddhistCalendar.cs
- CustomAttributeBuilder.cs
- DesignerFrame.cs
- NativeMethods.cs
- StructuralCache.cs
- IsolatedStorageException.cs
- ButtonChrome.cs
- NumberSubstitution.cs
- Attributes.cs
- HashMembershipCondition.cs
- AssemblyFilter.cs
- PersonalizableAttribute.cs
- ToolStripControlHost.cs
- UInt32Storage.cs
- ModelFunction.cs
- ListViewContainer.cs
- RelationshipDetailsCollection.cs
- WindowsMenu.cs
- EntryIndex.cs
- SpeakProgressEventArgs.cs
- XmlHierarchyData.cs
- ServerValidateEventArgs.cs
- TwoPhaseCommit.cs
- SettingsContext.cs
- SecurityTokenProvider.cs
- SettingsAttributeDictionary.cs
- ModelUIElement3D.cs
- EmptyImpersonationContext.cs
- RequestCache.cs
- MediaContext.cs
- TypeDescriptionProviderAttribute.cs
- RemotingSurrogateSelector.cs
- BitmapMetadataBlob.cs
- SchemeSettingElement.cs
- RuleRefElement.cs
- IHttpResponseInternal.cs
- FileSystemWatcher.cs
- InputReport.cs
- Floater.cs
- SiteMapSection.cs
- TextParaLineResult.cs
- PanningMessageFilter.cs
- ResXFileRef.cs
- ConnectionConsumerAttribute.cs
- DataSourceHelper.cs
- AppearanceEditorPart.cs
- TextEditorContextMenu.cs
- TextBoxRenderer.cs
- InputReportEventArgs.cs
- MergablePropertyAttribute.cs
- HMACSHA1.cs
- TraceFilter.cs
- ListViewGroupItemCollection.cs