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
- PropertyChangingEventArgs.cs
- SmiGettersStream.cs
- RegisteredArrayDeclaration.cs
- MimeObjectFactory.cs
- MenuStrip.cs
- ReflectPropertyDescriptor.cs
- ParameterBuilder.cs
- ProviderBase.cs
- Binding.cs
- BamlLocalizableResource.cs
- Int32Rect.cs
- DotAtomReader.cs
- SqlNode.cs
- Rijndael.cs
- MessageHeaderT.cs
- DataGridViewComboBoxEditingControl.cs
- ShaderRenderModeValidation.cs
- ToolStripDropDownButton.cs
- CheckBox.cs
- XmlToDatasetMap.cs
- EntityException.cs
- RequestDescription.cs
- NamespaceListProperty.cs
- UnsafeNativeMethods.cs
- DataViewManagerListItemTypeDescriptor.cs
- BuildProvidersCompiler.cs
- DefaultProxySection.cs
- WarningException.cs
- ClientUrlResolverWrapper.cs
- ByteAnimationBase.cs
- UInt32Storage.cs
- SchemaMerger.cs
- BaseValidator.cs
- ProviderCommandInfoUtils.cs
- _IPv6Address.cs
- UnmanagedMarshal.cs
- CustomAttributeBuilder.cs
- TableLayoutCellPaintEventArgs.cs
- StringDictionaryCodeDomSerializer.cs
- PropertyDescriptorGridEntry.cs
- DesignOnlyAttribute.cs
- WsdlWriter.cs
- BroadcastEventHelper.cs
- EdmConstants.cs
- ChangePassword.cs
- SudsCommon.cs
- EventSinkHelperWriter.cs
- HexParser.cs
- DrawingServices.cs
- WebHttpSecurity.cs
- BitmapEffectOutputConnector.cs
- VisualStateGroup.cs
- StructuredTypeEmitter.cs
- ProfileGroupSettingsCollection.cs
- Path.cs
- GeometryCollection.cs
- ContentPresenter.cs
- Internal.cs
- DBDataPermissionAttribute.cs
- CodePageEncoding.cs
- MouseActionValueSerializer.cs
- MULTI_QI.cs
- TableLayoutSettings.cs
- ValueProviderWrapper.cs
- ToolBarDesigner.cs
- CodeObject.cs
- WrappedIUnknown.cs
- initElementDictionary.cs
- GPPOINT.cs
- UInt32Storage.cs
- SafeNativeMethods.cs
- ListQueryResults.cs
- SoundPlayerAction.cs
- AttachmentService.cs
- XmlDocumentSerializer.cs
- SymbolMethod.cs
- contentDescriptor.cs
- Stroke2.cs
- SocketPermission.cs
- MexHttpsBindingElement.cs
- AuthenticatedStream.cs
- DbConnectionPool.cs
- Attachment.cs
- PeerApplicationLaunchInfo.cs
- InkCanvasSelectionAdorner.cs
- CompensationParticipant.cs
- Attributes.cs
- OrderedDictionary.cs
- FixedStringLookup.cs
- FormParameter.cs
- OperatingSystem.cs
- WebService.cs
- NamedPipeTransportSecurityElement.cs
- Line.cs
- Polygon.cs
- AvTraceFormat.cs
- BooleanProjectedSlot.cs
- LoginCancelEventArgs.cs
- CounterCreationDataCollection.cs
- FilterException.cs