Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HMACSHA1.cs
- XMLSyntaxException.cs
- TemplateComponentConnector.cs
- SiteMapDataSource.cs
- HostVisual.cs
- DataKey.cs
- NavigationProperty.cs
- OletxVolatileEnlistment.cs
- Mapping.cs
- PersonalizableTypeEntry.cs
- RecordsAffectedEventArgs.cs
- MLangCodePageEncoding.cs
- Equal.cs
- GcSettings.cs
- ClientTarget.cs
- StoreItemCollection.Loader.cs
- FormViewDeleteEventArgs.cs
- WindowsToolbarAsMenu.cs
- InitializationEventAttribute.cs
- Rfc2898DeriveBytes.cs
- Regex.cs
- COM2ICategorizePropertiesHandler.cs
- _ListenerResponseStream.cs
- ScrollProviderWrapper.cs
- Cursor.cs
- RichTextBox.cs
- ActiveXHelper.cs
- LogicalExpr.cs
- StringAnimationUsingKeyFrames.cs
- DataServiceRequest.cs
- FileChangesMonitor.cs
- WsatStrings.cs
- DataControlFieldCell.cs
- SoapExtensionReflector.cs
- SqlDataSourceCommandEventArgs.cs
- IndentTextWriter.cs
- XPathItem.cs
- BrushValueSerializer.cs
- ModelProperty.cs
- SqlConnectionFactory.cs
- ResourceDictionary.cs
- SafeFileMappingHandle.cs
- counter.cs
- SchemaImporterExtension.cs
- SpecialFolderEnumConverter.cs
- HttpServerVarsCollection.cs
- WorkflowApplicationCompletedException.cs
- MembershipUser.cs
- AssemblyAttributes.cs
- TypeResolver.cs
- Crypto.cs
- PageClientProxyGenerator.cs
- Stream.cs
- OutputChannelBinder.cs
- XmlCharType.cs
- __ComObject.cs
- FontResourceCache.cs
- UdpContractFilterBehavior.cs
- FileDialog.cs
- TaiwanCalendar.cs
- ObjectToIdCache.cs
- DataObjectEventArgs.cs
- KeyInterop.cs
- mactripleDES.cs
- Panel.cs
- TextTreeRootTextBlock.cs
- EditorZoneBase.cs
- BitmapDecoder.cs
- FormsAuthenticationModule.cs
- BamlLocalizabilityResolver.cs
- WebBrowsableAttribute.cs
- UniformGrid.cs
- InvokeProviderWrapper.cs
- DataControlFieldCollection.cs
- AmbiguousMatchException.cs
- ActiveXHelper.cs
- CalendarItem.cs
- ParenthesizePropertyNameAttribute.cs
- PanelStyle.cs
- LinqDataSourceDeleteEventArgs.cs
- ColumnMapCopier.cs
- SizeAnimationUsingKeyFrames.cs
- NetSectionGroup.cs
- CmsInterop.cs
- CommandEventArgs.cs
- TimeEnumHelper.cs
- EdmMember.cs
- SerialPinChanges.cs
- Compiler.cs
- CodeConstructor.cs
- SuppressMessageAttribute.cs
- DataGridViewTextBoxEditingControl.cs
- SqlTypeConverter.cs
- GorillaCodec.cs
- QilTernary.cs
- InputScopeNameConverter.cs
- WmlCommandAdapter.cs
- IisTraceListener.cs
- iisPickupDirectory.cs
- WebServiceHost.cs