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;
///
///
/// 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
- FlowDocumentReader.cs
- URLEditor.cs
- InkCollectionBehavior.cs
- WebPartVerb.cs
- Helpers.cs
- TrackPoint.cs
- FilterElement.cs
- XmlParserContext.cs
- UrlUtility.cs
- FunctionOverloadResolver.cs
- TaskFileService.cs
- DataGridViewTopLeftHeaderCell.cs
- CardSpaceSelector.cs
- GifBitmapEncoder.cs
- SqlTransaction.cs
- ControlBuilderAttribute.cs
- QilValidationVisitor.cs
- MexHttpBindingCollectionElement.cs
- HttpClientProtocol.cs
- GlobalProxySelection.cs
- ObjectToken.cs
- CapabilitiesPattern.cs
- XmlWellformedWriter.cs
- AsnEncodedData.cs
- UiaCoreApi.cs
- EventsTab.cs
- Converter.cs
- Win32Exception.cs
- ISessionStateStore.cs
- X509ChainPolicy.cs
- DynamicResourceExtension.cs
- PerformanceCounterTraceRecord.cs
- RequestQueryParser.cs
- IncrementalReadDecoders.cs
- TextServicesCompartmentEventSink.cs
- MarkupCompilePass1.cs
- TreePrinter.cs
- ScriptingScriptResourceHandlerSection.cs
- DynamicMetaObject.cs
- MultiViewDesigner.cs
- DialogResultConverter.cs
- ToolStripProgressBar.cs
- LightweightEntityWrapper.cs
- Misc.cs
- BindValidationContext.cs
- RouteValueExpressionBuilder.cs
- TabPage.cs
- ButtonPopupAdapter.cs
- EdmType.cs
- COM2ExtendedUITypeEditor.cs
- ProtocolInformationReader.cs
- IndexerNameAttribute.cs
- GetIndexBinder.cs
- StatusBar.cs
- DataViewManager.cs
- JsonReader.cs
- Script.cs
- XamlTypeMapper.cs
- ScalarOps.cs
- ApplicationServicesHostFactory.cs
- Attachment.cs
- TransformValueSerializer.cs
- KeyGestureConverter.cs
- SingleTagSectionHandler.cs
- InternalTypeHelper.cs
- DataSourceHelper.cs
- DefaultMemberAttribute.cs
- DetailsViewDeleteEventArgs.cs
- Binding.cs
- _LocalDataStore.cs
- SqlConnectionHelper.cs
- InertiaTranslationBehavior.cs
- RuntimeResourceSet.cs
- HTMLTagNameToTypeMapper.cs
- FixUpCollection.cs
- StickyNote.cs
- Span.cs
- DefaultPrintController.cs
- ValueType.cs
- infer.cs
- CommonDialog.cs
- NativeMethods.cs
- ToolStripDropDown.cs
- FamilyCollection.cs
- QueryExecutionOption.cs
- UseAttributeSetsAction.cs
- Encoder.cs
- WebPartUserCapability.cs
- StringValueSerializer.cs
- HwndHostAutomationPeer.cs
- HandlerMappingMemo.cs
- ControlUtil.cs
- DocumentManager.cs
- SuppressIldasmAttribute.cs
- SiteMapDataSource.cs
- XmlUrlResolver.cs
- GeometryDrawing.cs
- WindowPatternIdentifiers.cs
- IndexedGlyphRun.cs
- PrintControllerWithStatusDialog.cs