Code:
/ 4.0 / 4.0 / untmp / 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;
///
///
/// 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);
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HeaderedContentControl.cs
- FixUpCollection.cs
- PersonalizationStateQuery.cs
- SqlSelectClauseBuilder.cs
- MouseGesture.cs
- FontSizeConverter.cs
- Missing.cs
- ITextView.cs
- TextEditorTyping.cs
- IsolatedStorageFilePermission.cs
- AbandonedMutexException.cs
- FormatterServices.cs
- HttpCookiesSection.cs
- SchemaContext.cs
- DataTableReader.cs
- SafeNativeMethods.cs
- SiblingIterators.cs
- XmlSchemaExternal.cs
- CacheDependency.cs
- DesignerToolboxInfo.cs
- QueryResponse.cs
- TabControl.cs
- DbParameterCollectionHelper.cs
- GridEntry.cs
- SqlClientPermission.cs
- ContextMenu.cs
- LassoHelper.cs
- Stylesheet.cs
- XPathScanner.cs
- ContextStack.cs
- XPathNode.cs
- HMACSHA1.cs
- TaskHelper.cs
- ClientReliableChannelBinder.cs
- ShortcutKeysEditor.cs
- ResourceDictionary.cs
- AutomationEvent.cs
- StringUtil.cs
- RootContext.cs
- DynamicActionMessageFilter.cs
- CodeParameterDeclarationExpression.cs
- CharEntityEncoderFallback.cs
- CharacterBuffer.cs
- MostlySingletonList.cs
- PlainXmlWriter.cs
- SqlWriter.cs
- AssociationType.cs
- XmlAutoDetectWriter.cs
- BitmapDownload.cs
- CheckBoxAutomationPeer.cs
- SecurityManager.cs
- PackUriHelper.cs
- BinarySerializer.cs
- EmptyEnumerable.cs
- EpmCustomContentSerializer.cs
- ValidationRuleCollection.cs
- EntityDataSourceViewSchema.cs
- FontFamilyValueSerializer.cs
- FileDocument.cs
- LineServices.cs
- TextTreeRootTextBlock.cs
- KeyValueConfigurationElement.cs
- URL.cs
- PropertyEntry.cs
- EventLogPermissionEntryCollection.cs
- PointF.cs
- DataControlFieldTypeEditor.cs
- ToolStripDropDownClosedEventArgs.cs
- UrlPath.cs
- DoubleAnimationClockResource.cs
- ByteRangeDownloader.cs
- EventInfo.cs
- SecurityContextKeyIdentifierClause.cs
- Calendar.cs
- ActivityLocationReferenceEnvironment.cs
- PropertyGeneratedEventArgs.cs
- Page.cs
- SafeFindHandle.cs
- SpeechEvent.cs
- VectorValueSerializer.cs
- IteratorDescriptor.cs
- IdentifierService.cs
- XmlSchemaSet.cs
- WebContext.cs
- DbConnectionOptions.cs
- DateTimeOffsetStorage.cs
- ArithmeticException.cs
- InternalTypeHelper.cs
- XmlWellformedWriter.cs
- EnterpriseServicesHelper.cs
- SecurityUtils.cs
- CodeSnippetTypeMember.cs
- TextureBrush.cs
- ProfileGroupSettingsCollection.cs
- XmlSchemaRedefine.cs
- MultiView.cs
- TransformConverter.cs
- Utilities.cs
- TypeForwardedToAttribute.cs
- TimerEventSubscription.cs