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
- WindowsFormsHelpers.cs
- BasePropertyDescriptor.cs
- KeyValuePair.cs
- ApplicationDirectoryMembershipCondition.cs
- Validator.cs
- NaturalLanguageHyphenator.cs
- ConfigurationPropertyCollection.cs
- ProvideValueServiceProvider.cs
- JpegBitmapEncoder.cs
- DataServiceRequestOfT.cs
- ToolStripContainer.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Command.cs
- CurrentChangingEventArgs.cs
- ReflectTypeDescriptionProvider.cs
- SelectionRange.cs
- Itemizer.cs
- SafePointer.cs
- AudioFileOut.cs
- LongPath.cs
- BuilderElements.cs
- VectorValueSerializer.cs
- MutexSecurity.cs
- ContractMapping.cs
- TypeToken.cs
- InstancePersistenceEvent.cs
- RunInstallerAttribute.cs
- FormsAuthentication.cs
- GroupLabel.cs
- TraceRecord.cs
- Predicate.cs
- CatalogZone.cs
- ButtonField.cs
- XhtmlBasicLiteralTextAdapter.cs
- EdmValidator.cs
- SchemaTableOptionalColumn.cs
- Int32Storage.cs
- OracleConnection.cs
- Comparer.cs
- MatrixUtil.cs
- XmlArrayAttribute.cs
- XmlValidatingReaderImpl.cs
- MetaDataInfo.cs
- AxHostDesigner.cs
- FormViewModeEventArgs.cs
- PrivilegeNotHeldException.cs
- FileClassifier.cs
- WindowsFormsSynchronizationContext.cs
- HtmlInputPassword.cs
- TypeHelpers.cs
- XXXOnTypeBuilderInstantiation.cs
- Pair.cs
- DBPropSet.cs
- OutputCacheProfileCollection.cs
- BamlRecordHelper.cs
- OracleInfoMessageEventArgs.cs
- PerspectiveCamera.cs
- ProgressBarBrushConverter.cs
- DesignerOptionService.cs
- Environment.cs
- StringResourceManager.cs
- XmlUrlResolver.cs
- DynamicQueryableWrapper.cs
- ExpressionList.cs
- SmtpReplyReader.cs
- MethodBuilder.cs
- PointF.cs
- ChildrenQuery.cs
- SignedInfo.cs
- MenuItemBinding.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CrossContextChannel.cs
- ParameterCollection.cs
- ToolStripDropDown.cs
- IisTraceListener.cs
- ComponentDispatcher.cs
- RoutingChannelExtension.cs
- LoadedEvent.cs
- ObjectDataSourceDisposingEventArgs.cs
- ItemContainerGenerator.cs
- CodeComment.cs
- XmlBaseReader.cs
- CachingHintValidation.cs
- HttpBufferlessInputStream.cs
- Size3D.cs
- RawMouseInputReport.cs
- AssemblyCacheEntry.cs
- isolationinterop.cs
- Point4DConverter.cs
- LightweightCodeGenerator.cs
- BatchWriter.cs
- WinEventWrap.cs
- NameValueConfigurationElement.cs
- Pkcs7Recipient.cs
- OpenTypeLayoutCache.cs
- versioninfo.cs
- PersistenceTypeAttribute.cs
- ListChangedEventArgs.cs
- ThicknessAnimationBase.cs
- DPAPIProtectedConfigurationProvider.cs