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
- Knowncolors.cs
- CompoundFileReference.cs
- InputBuffer.cs
- XamlParser.cs
- PersonalizationProviderCollection.cs
- StreamReader.cs
- OlePropertyStructs.cs
- RoleManagerModule.cs
- MenuItemStyle.cs
- ChangeBlockUndoRecord.cs
- CommandLibraryHelper.cs
- ToolStripMenuItem.cs
- MediaPlayer.cs
- BaseConfigurationRecord.cs
- SliderAutomationPeer.cs
- ConfigurationLocation.cs
- complextypematerializer.cs
- JobCollate.cs
- BuildProviderInstallComponent.cs
- LicenseProviderAttribute.cs
- PropertyBuilder.cs
- CompensationHandlingFilter.cs
- MetadataItemSerializer.cs
- NonDualMessageSecurityOverHttp.cs
- ComEventsSink.cs
- CodeMethodInvokeExpression.cs
- FormViewDeleteEventArgs.cs
- DesignerDataColumn.cs
- Repeater.cs
- AssociationTypeEmitter.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ExternalException.cs
- AuthorizationRule.cs
- DesignerDataRelationship.cs
- ColorPalette.cs
- XmlAutoDetectWriter.cs
- StrokeNodeOperations2.cs
- ButtonBase.cs
- TemplateApplicationHelper.cs
- CacheVirtualItemsEvent.cs
- XmlCDATASection.cs
- TextServicesContext.cs
- SafeUserTokenHandle.cs
- PersistenceContext.cs
- HttpWriter.cs
- EnumUnknown.cs
- QilDataSource.cs
- StoreItemCollection.cs
- QueryOptionExpression.cs
- FormsAuthentication.cs
- GeometryCombineModeValidation.cs
- DataGridViewTextBoxCell.cs
- EventEntry.cs
- LoginDesigner.cs
- DataGridViewSelectedColumnCollection.cs
- DataGridTextBox.cs
- elementinformation.cs
- DocumentEventArgs.cs
- xamlnodes.cs
- XamlWriter.cs
- AncestorChangedEventArgs.cs
- HttpCachePolicy.cs
- SQLByte.cs
- WriterOutput.cs
- ControlPaint.cs
- UrlAuthorizationModule.cs
- PartialCachingAttribute.cs
- HtmlToClrEventProxy.cs
- XPathNavigatorReader.cs
- HTMLTextWriter.cs
- XsltLoader.cs
- SoapFault.cs
- Pkcs7Recipient.cs
- XmlEntity.cs
- ClientBuildManager.cs
- WorkflowNamespace.cs
- ZipIOLocalFileHeader.cs
- _SSPISessionCache.cs
- SafeRightsManagementPubHandle.cs
- ReturnValue.cs
- ExpressionCopier.cs
- CollectionChangeEventArgs.cs
- WebServiceParameterData.cs
- ListDependantCardsRequest.cs
- ItemType.cs
- Control.cs
- ForwardPositionQuery.cs
- DropShadowBitmapEffect.cs
- WindowsFont.cs
- ButtonBaseAdapter.cs
- ProcessHost.cs
- SystemException.cs
- SerializableAttribute.cs
- ParallelLoopState.cs
- RuntimeConfigurationRecord.cs
- SemaphoreSlim.cs
- TypeLoadException.cs
- InternalControlCollection.cs
- EventWaitHandleSecurity.cs
- WebPartTransformerAttribute.cs