Code:
/ DotNET / DotNET / 8.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;
///
///
/// Provides a description
/// of an event.
///
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class EventDescriptor : MemberDescriptor {
///
///
/// Initializes a new instance of the class with the
/// specified name and attribute
/// array.
///
///
protected EventDescriptor(string name, Attribute[] attrs)
: base(name, attrs) {
}
///
///
/// Initializes a new instance of the class with the name and attributes in
/// the specified
/// .
///
///
protected EventDescriptor(MemberDescriptor descr)
: base(descr) {
}
///
///
/// Initializes a new instance of the class with
/// the name in the specified and the
/// attributes in both the and the
/// array.
///
///
protected EventDescriptor(MemberDescriptor descr, Attribute[] attrs)
: base(descr, attrs) {
}
///
///
/// When overridden in a derived
/// class,
/// gets the type of the component this event is bound to.
///
///
public abstract Type ComponentType { get; }
///
///
/// When overridden in a derived
/// class, gets the type of delegate for the event.
///
///
public abstract Type EventType { get; }
///
///
/// When overridden in a derived class, gets a value
/// indicating whether the event delegate is a multicast
/// delegate.
///
///
public abstract bool IsMulticast { get; }
///
///
/// When overridden in
/// a derived class,
/// binds the event to the component.
///
///
public abstract void AddEventHandler(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.
///
///
public abstract void RemoveEventHandler(object component, Delegate value);
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropagatorResult.cs
- Vector3DCollection.cs
- DnsPermission.cs
- MemberProjectionIndex.cs
- SQLInt32.cs
- NativeMethods.cs
- SqlTrackingService.cs
- ContainerControl.cs
- CollectionChangeEventArgs.cs
- HitTestWithPointDrawingContextWalker.cs
- DataPagerFieldCollection.cs
- HtmlLink.cs
- LongValidator.cs
- Converter.cs
- EntityContainerRelationshipSet.cs
- XPathMessageFilterTable.cs
- DecoderFallback.cs
- WindowsListViewItemCheckBox.cs
- DefaultValueConverter.cs
- sqlstateclientmanager.cs
- XmlAttributeProperties.cs
- VisualStyleRenderer.cs
- EventHandlersStore.cs
- TitleStyle.cs
- ClassicBorderDecorator.cs
- WrappedIUnknown.cs
- WebPartAuthorizationEventArgs.cs
- TableDetailsRow.cs
- ObsoleteAttribute.cs
- FirstQueryOperator.cs
- DataGridViewBindingCompleteEventArgs.cs
- ListItemCollection.cs
- ResourceSet.cs
- WrapPanel.cs
- TextEditorTyping.cs
- RegexCapture.cs
- InputLanguage.cs
- SoapCommonClasses.cs
- HatchBrush.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- IgnorePropertiesAttribute.cs
- Journaling.cs
- DataBoundControlAdapter.cs
- cookiecollection.cs
- GradientStop.cs
- WindowsSlider.cs
- XhtmlBasicListAdapter.cs
- ProviderBase.cs
- SessionEndingCancelEventArgs.cs
- ComponentDispatcherThread.cs
- PagesChangedEventArgs.cs
- ThemeInfoAttribute.cs
- TraceProvider.cs
- HandleCollector.cs
- HtmlEmptyTagControlBuilder.cs
- ExecutedRoutedEventArgs.cs
- HtmlGenericControl.cs
- ConnectionStringSettingsCollection.cs
- RenderData.cs
- SyndicationElementExtensionCollection.cs
- EventBuilder.cs
- StringValidator.cs
- DataGridViewCellLinkedList.cs
- ViewStateModeByIdAttribute.cs
- ValidationHelper.cs
- Blend.cs
- Size3D.cs
- CoreSwitches.cs
- WebPartPersonalization.cs
- Visual3DCollection.cs
- SequenceNumber.cs
- Thumb.cs
- ConfigurationLocationCollection.cs
- ObjectStateFormatter.cs
- MediaContext.cs
- ReachFixedDocumentSerializer.cs
- SatelliteContractVersionAttribute.cs
- LinkButton.cs
- MergeLocalizationDirectives.cs
- CatalogZone.cs
- validationstate.cs
- SQLBinaryStorage.cs
- ComboBoxDesigner.cs
- WCFServiceClientProxyGenerator.cs
- TextAnchor.cs
- SqlDataSourceCommandEventArgs.cs
- RestHandler.cs
- EntityTransaction.cs
- Parameter.cs
- BookmarkManager.cs
- SspiWrapper.cs
- BinaryFormatterWriter.cs
- PropertyContainer.cs
- ThreadStaticAttribute.cs
- UndirectedGraph.cs
- ApplicationId.cs
- ResourceWriter.cs
- ByteArrayHelperWithString.cs
- WorkflowFileItem.cs
- StreamGeometryContext.cs