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
- SByte.cs
- Accessible.cs
- _NativeSSPI.cs
- EventLogEntryCollection.cs
- WebPartConnectionsCancelVerb.cs
- ListSortDescriptionCollection.cs
- AsyncResult.cs
- BooleanExpr.cs
- UTF7Encoding.cs
- BinaryUtilClasses.cs
- StructuralObject.cs
- CodeDesigner.cs
- DataBindingExpressionBuilder.cs
- EllipticalNodeOperations.cs
- XPathPatternBuilder.cs
- WpfSharedBamlSchemaContext.cs
- SHA1Managed.cs
- DispatcherHooks.cs
- Propagator.cs
- OpenTypeLayout.cs
- HtmlTableCell.cs
- SizeAnimationBase.cs
- PickBranch.cs
- NameValueFileSectionHandler.cs
- XmlAttributeCollection.cs
- SharedMemory.cs
- ItemContainerGenerator.cs
- Error.cs
- XmlSiteMapProvider.cs
- AsyncPostBackErrorEventArgs.cs
- WinInetCache.cs
- ObservableCollection.cs
- securestring.cs
- WindowsTokenRoleProvider.cs
- HttpContextWrapper.cs
- ObjectDataSourceMethodEventArgs.cs
- BrowserDefinitionCollection.cs
- Registry.cs
- SqlNodeAnnotation.cs
- FtpRequestCacheValidator.cs
- WindowsFormsSynchronizationContext.cs
- RemoteTokenFactory.cs
- FlowDocumentPageViewerAutomationPeer.cs
- TypeUtil.cs
- Profiler.cs
- RewritingValidator.cs
- DocumentViewerConstants.cs
- BamlMapTable.cs
- Int64Storage.cs
- SchemaComplexType.cs
- Axis.cs
- BinaryNode.cs
- TextViewBase.cs
- StylusPointDescription.cs
- ResolveNameEventArgs.cs
- SqlExpander.cs
- ExpressionBinding.cs
- EmbeddedMailObjectsCollection.cs
- PassportAuthenticationModule.cs
- XhtmlConformanceSection.cs
- DataListItemCollection.cs
- VisemeEventArgs.cs
- ChildrenQuery.cs
- StaticResourceExtension.cs
- PersonalizationProviderCollection.cs
- DXD.cs
- InheritanceRules.cs
- RequestSecurityTokenResponse.cs
- MessageDesigner.cs
- WeakReference.cs
- WorkflowApplicationAbortedException.cs
- CommunicationObjectManager.cs
- LogStore.cs
- Application.cs
- GenericFlowSwitchHelper.cs
- ExpressionBuilderContext.cs
- StylesEditorDialog.cs
- DatasetMethodGenerator.cs
- IODescriptionAttribute.cs
- EntityFrameworkVersions.cs
- PriorityChain.cs
- IChannel.cs
- StringDictionary.cs
- SeekStoryboard.cs
- DoubleLinkListEnumerator.cs
- ListControl.cs
- StylusPointDescription.cs
- MemberDescriptor.cs
- ValueTypeFixupInfo.cs
- EntityTypeEmitter.cs
- HebrewNumber.cs
- EventEntry.cs
- XmlDocumentType.cs
- Bits.cs
- HashCodeCombiner.cs
- PerfService.cs
- ImportCatalogPart.cs
- PassportAuthentication.cs
- DataSetMappper.cs
- HashAlgorithm.cs