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
- SizeAnimation.cs
- XmlTextWriter.cs
- LoginViewDesigner.cs
- SignatureHelper.cs
- WSDualHttpBindingElement.cs
- CodeConstructor.cs
- Menu.cs
- HtmlTableRow.cs
- RecognizedPhrase.cs
- DataBinding.cs
- SetterBase.cs
- DBSqlParserColumnCollection.cs
- DataBindEngine.cs
- TraceEventCache.cs
- Processor.cs
- AggregateException.cs
- DiagnosticTrace.cs
- StringArrayConverter.cs
- _ChunkParse.cs
- GenerateTemporaryTargetAssembly.cs
- LoginCancelEventArgs.cs
- CompositeTypefaceMetrics.cs
- TopClause.cs
- Operand.cs
- WmpBitmapEncoder.cs
- OdbcReferenceCollection.cs
- TreeChangeInfo.cs
- Helpers.cs
- Stackframe.cs
- SubMenuStyle.cs
- X509Utils.cs
- ClassicBorderDecorator.cs
- ImagingCache.cs
- TextOptions.cs
- DataFormat.cs
- SettingsPropertyIsReadOnlyException.cs
- XmlNodeChangedEventArgs.cs
- OwnerDrawPropertyBag.cs
- FontFamilyIdentifier.cs
- SqlDataSourceCommandEventArgs.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- TaskbarItemInfo.cs
- HttpCookieCollection.cs
- WizardForm.cs
- DefaultWorkflowSchedulerService.cs
- DataStreamFromComStream.cs
- StaticExtension.cs
- StatusBar.cs
- RequestCacheValidator.cs
- DataGridViewRowPrePaintEventArgs.cs
- SecurityBindingElementImporter.cs
- ConfigXmlWhitespace.cs
- SessionStateSection.cs
- ScriptControlDescriptor.cs
- KeyBinding.cs
- EventWaitHandle.cs
- QueryCacheKey.cs
- ToolStripItemRenderEventArgs.cs
- SafeFileMappingHandle.cs
- HostingPreferredMapPath.cs
- UserPersonalizationStateInfo.cs
- AttachedPropertyInfo.cs
- DataFormat.cs
- HelpEvent.cs
- PerformanceCounterTraceRecord.cs
- CheckBox.cs
- WindowInteropHelper.cs
- CapabilitiesPattern.cs
- HandleCollector.cs
- AssemblyBuilder.cs
- SerialStream.cs
- WizardDesigner.cs
- UrlUtility.cs
- CodeArrayCreateExpression.cs
- XmlCountingReader.cs
- SqlUserDefinedAggregateAttribute.cs
- WhitespaceRuleLookup.cs
- FormViewDeleteEventArgs.cs
- StandardCommands.cs
- Tracking.cs
- ClassDataContract.cs
- UserPreferenceChangingEventArgs.cs
- ManagedFilter.cs
- OptionalMessageQuery.cs
- ScriptReferenceEventArgs.cs
- ManipulationDelta.cs
- LinqDataSourceUpdateEventArgs.cs
- HeaderUtility.cs
- RIPEMD160Managed.cs
- ConfigurationStrings.cs
- Command.cs
- DependencyObject.cs
- RequestDescription.cs
- InstanceKeyView.cs
- Int32Converter.cs
- CodeTypeMemberCollection.cs
- SoapExtensionTypeElementCollection.cs
- XmlSecureResolver.cs
- IndexedSelectQueryOperator.cs
- FlagsAttribute.cs