Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / CollectionChangeEventArgs.cs / 1 / CollectionChangeEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtection(SharedState = true)]
public class CollectionChangeEventArgs : EventArgs
{
private CollectionChangeAction action;
private object element;
///
/// Initializes a new instance of the class.
///
public CollectionChangeEventArgs(CollectionChangeAction action, object element) {
this.action = action;
this.element = element;
}
///
/// Gets an action that specifies how the collection changed.
///
public virtual CollectionChangeAction Action {
get {
return action;
}
}
///
/// Gets the instance of the collection with the change.
///
public virtual object Element {
get {
return element;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlDataReaderSmi.cs
- AssociationSet.cs
- Html32TextWriter.cs
- AppSettingsExpressionBuilder.cs
- ManifestResourceInfo.cs
- ApplicationFileParser.cs
- DynamicValidatorEventArgs.cs
- BatchParser.cs
- CompilerInfo.cs
- Avt.cs
- UnknownWrapper.cs
- StructuredProperty.cs
- SendActivity.cs
- CompilerTypeWithParams.cs
- GridLengthConverter.cs
- XsdBuilder.cs
- DataSvcMapFileSerializer.cs
- XmlSchemaSimpleTypeRestriction.cs
- SafeNativeMethods.cs
- DataGridViewSortCompareEventArgs.cs
- ImageUrlEditor.cs
- AccessibleObject.cs
- DBConnection.cs
- ChangePassword.cs
- GridViewRow.cs
- AnnouncementService.cs
- TreeView.cs
- XmlElement.cs
- InvokeMethodActivity.cs
- ELinqQueryState.cs
- ServicesSection.cs
- CalendarDesigner.cs
- ConnectionPoint.cs
- WebBrowserEvent.cs
- DateTimePicker.cs
- ParserExtension.cs
- FunctionGenerator.cs
- TdsParserSessionPool.cs
- BitmapSourceSafeMILHandle.cs
- CDSsyncETWBCLProvider.cs
- KeyBinding.cs
- EndpointInfo.cs
- Classification.cs
- SafeNativeMethods.cs
- TimerElapsedEvenArgs.cs
- Rotation3D.cs
- WorkflowMessageEventHandler.cs
- SHA256Managed.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- HttpApplication.cs
- ContainerSelectorGlyph.cs
- DesignerSelectionListAdapter.cs
- smtppermission.cs
- _NegoState.cs
- DockAndAnchorLayout.cs
- NamespaceCollection.cs
- Number.cs
- StandardCommands.cs
- ProgressBarAutomationPeer.cs
- StylusDownEventArgs.cs
- TextPointer.cs
- tooltip.cs
- ThrowHelper.cs
- PageEventArgs.cs
- HttpPostServerProtocol.cs
- WindowsScrollBarBits.cs
- Executor.cs
- Msec.cs
- TransactionProtocolConverter.cs
- ReceiveReply.cs
- D3DImage.cs
- WindowsIPAddress.cs
- DocumentReference.cs
- PolyLineSegment.cs
- ReplacementText.cs
- Int64Converter.cs
- AliasedSlot.cs
- ProvidersHelper.cs
- IncrementalHitTester.cs
- ClientScriptManager.cs
- CompositeFontInfo.cs
- AssemblyCollection.cs
- relpropertyhelper.cs
- ImageKeyConverter.cs
- DataGridViewSortCompareEventArgs.cs
- XmlValueConverter.cs
- TriState.cs
- ClientType.cs
- SpecialNameAttribute.cs
- DSACryptoServiceProvider.cs
- GeometryGroup.cs
- CookieProtection.cs
- IFlowDocumentViewer.cs
- ProcessMonitor.cs
- QueueException.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- CopyOfAction.cs
- EntitySqlException.cs
- ArrayTypeMismatchException.cs
- ScriptingProfileServiceSection.cs