Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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);
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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
- SchemaMapping.cs
- OverrideMode.cs
- DescriptionAttribute.cs
- DataServiceQuery.cs
- Visual3DCollection.cs
- FormsAuthenticationConfiguration.cs
- AccessDataSource.cs
- FontSizeConverter.cs
- Italic.cs
- AdapterDictionary.cs
- EntityContainerEmitter.cs
- SqlLiftIndependentRowExpressions.cs
- DisplayInformation.cs
- ArcSegment.cs
- RequestCacheManager.cs
- Console.cs
- HttpResponse.cs
- ProtocolsSection.cs
- BitmapEffectvisualstate.cs
- WebPartActionVerb.cs
- SchemaTableOptionalColumn.cs
- MenuItemBinding.cs
- Drawing.cs
- PropertyOverridesDialog.cs
- RulePatternOps.cs
- VisualBasic.cs
- DateTimeOffset.cs
- InstanceKeyNotReadyException.cs
- OneOfScalarConst.cs
- LogicalExpr.cs
- CategoriesDocument.cs
- ArrangedElement.cs
- BitmapFrameEncode.cs
- While.cs
- DataListComponentEditor.cs
- DropSource.cs
- ClientBuildManagerCallback.cs
- VoiceObjectToken.cs
- ObjectStateManagerMetadata.cs
- InfocardChannelParameter.cs
- HtmlTable.cs
- InvalidAsynchronousStateException.cs
- ObjectIDGenerator.cs
- CompModHelpers.cs
- PtsHost.cs
- DesignBindingPicker.cs
- System.Data.OracleClient_BID.cs
- RemoteTokenFactory.cs
- DbProviderFactories.cs
- unsafeIndexingFilterStream.cs
- glyphs.cs
- ControlOperationBehavior.cs
- RenderTargetBitmap.cs
- HttpDateParse.cs
- IDQuery.cs
- DataGridViewAddColumnDialog.cs
- SByteStorage.cs
- AutoResizedEvent.cs
- XmlMapping.cs
- TraceContext.cs
- StreamWriter.cs
- DataSourceSerializationException.cs
- ServiceHttpModule.cs
- WindowsListViewScroll.cs
- XPathItem.cs
- MethodImplAttribute.cs
- SiteOfOriginContainer.cs
- IgnoreSection.cs
- SymbolMethod.cs
- SiteMapNodeCollection.cs
- ItemType.cs
- storepermission.cs
- TextContainerChangedEventArgs.cs
- ViewKeyConstraint.cs
- DrawingVisual.cs
- PopupRoot.cs
- InvokeBase.cs
- StatusStrip.cs
- PersonalizablePropertyEntry.cs
- SelectionHighlightInfo.cs
- EventSetter.cs
- References.cs
- OneOfConst.cs
- SelectedDatesCollection.cs
- Action.cs
- RequestCacheManager.cs
- WindowsButton.cs
- MultiSelectRootGridEntry.cs
- AssemblyAttributes.cs
- TableCell.cs
- entitydatasourceentitysetnameconverter.cs
- StaticTextPointer.cs
- PackagePart.cs
- DefaultParameterValueAttribute.cs
- SqlDataReaderSmi.cs
- MenuItemBindingCollection.cs
- TiffBitmapEncoder.cs
- SecurityIdentifierConverter.cs
- ConditionCollection.cs
- CellIdBoolean.cs