Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } }/// 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
- ErrorFormatter.cs
- AutoCompleteStringCollection.cs
- SynchronizationContext.cs
- ColorIndependentAnimationStorage.cs
- DataGridViewTopRowAccessibleObject.cs
- BinaryConverter.cs
- XmlNodeComparer.cs
- WindowsIdentity.cs
- WebReferencesBuildProvider.cs
- SolidBrush.cs
- ContextMenuStripActionList.cs
- SqlProviderManifest.cs
- CallbackDebugElement.cs
- AuthenticationSection.cs
- FrameworkTemplate.cs
- CreateRefExpr.cs
- TriggerAction.cs
- XPathNodeList.cs
- RelationshipConstraintValidator.cs
- CollectionViewGroupInternal.cs
- ConnectionConsumerAttribute.cs
- ExecutedRoutedEventArgs.cs
- TextTreeNode.cs
- XsdSchemaFileEditor.cs
- HttpCapabilitiesSectionHandler.cs
- ListViewUpdateEventArgs.cs
- wmiprovider.cs
- DebugHandleTracker.cs
- Vector3DAnimationUsingKeyFrames.cs
- keycontainerpermission.cs
- OperationCanceledException.cs
- DownloadProgressEventArgs.cs
- _NegotiateClient.cs
- SafeCloseHandleCritical.cs
- XamlTypeMapperSchemaContext.cs
- CalendarDateRangeChangingEventArgs.cs
- MulticastOption.cs
- CapabilitiesSection.cs
- XComponentModel.cs
- WebPartEditorApplyVerb.cs
- StyleModeStack.cs
- ImpersonateTokenRef.cs
- ParameterCollection.cs
- GroupLabel.cs
- DesignSurfaceManager.cs
- SecurityCriticalDataForSet.cs
- ExpressionVisitorHelpers.cs
- NativeMethods.cs
- HebrewCalendar.cs
- DateTimeOffsetConverter.cs
- EncodingDataItem.cs
- WebException.cs
- ConfigurationManagerInternal.cs
- _SslStream.cs
- Polyline.cs
- LayoutUtils.cs
- Utils.cs
- TraceLevelStore.cs
- As.cs
- BlockExpression.cs
- DoubleConverter.cs
- DynamicMetaObjectBinder.cs
- SchemaTableColumn.cs
- diagnosticsswitches.cs
- XmlFormatReaderGenerator.cs
- Single.cs
- XmlAttributes.cs
- HttpListenerResponse.cs
- wmiprovider.cs
- RsaKeyGen.cs
- TextCharacters.cs
- ContentType.cs
- GridViewAutomationPeer.cs
- ViewGenerator.cs
- RuleSetBrowserDialog.cs
- Trigger.cs
- ADConnectionHelper.cs
- MergeExecutor.cs
- InfoCard.cs
- CodeDelegateInvokeExpression.cs
- XPathItem.cs
- safesecurityhelperavalon.cs
- TCPListener.cs
- Constraint.cs
- PolicyFactory.cs
- TickBar.cs
- ToggleProviderWrapper.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- DiscoveryDocumentSearchPattern.cs
- AllMembershipCondition.cs
- TreeNodeMouseHoverEvent.cs
- EventMappingSettings.cs
- TextElementEnumerator.cs
- DiscardableAttribute.cs
- CompileXomlTask.cs
- Boolean.cs
- DescendentsWalkerBase.cs
- DecoratedNameAttribute.cs
- AssociationTypeEmitter.cs
- InputScope.cs