Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / CollectionChangeEventArgs.cs / 1305376 / 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;
}
}
}
}
// 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
- VideoDrawing.cs
- SqlMethodCallConverter.cs
- TableRowGroupCollection.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ProviderUtil.cs
- CallbackValidatorAttribute.cs
- ToolStripDropDownItem.cs
- DataGridViewHeaderCell.cs
- DeviceFilterEditorDialog.cs
- BinaryFormatter.cs
- ListViewEditEventArgs.cs
- MimeTypeMapper.cs
- RadioButtonFlatAdapter.cs
- QuotedPrintableStream.cs
- PropertyGeneratedEventArgs.cs
- SingletonChannelAcceptor.cs
- MimeBasePart.cs
- ResourceIDHelper.cs
- GregorianCalendar.cs
- TokenFactoryFactory.cs
- SelectionEditingBehavior.cs
- Base64Encoder.cs
- MaskedTextBoxDesignerActionList.cs
- AmbientLight.cs
- RuntimeWrappedException.cs
- CatalogZone.cs
- NeutralResourcesLanguageAttribute.cs
- WCFBuildProvider.cs
- BuildProvidersCompiler.cs
- GrowingArray.cs
- JavaScriptString.cs
- ProviderCommandInfoUtils.cs
- TypedReference.cs
- TreeView.cs
- HttpApplication.cs
- panel.cs
- DataStreamFromComStream.cs
- MissingSatelliteAssemblyException.cs
- ViewKeyConstraint.cs
- _HTTPDateParse.cs
- BinaryFormatter.cs
- AdPostCacheSubstitution.cs
- AffineTransform3D.cs
- ListComponentEditor.cs
- InputMethod.cs
- dataprotectionpermissionattribute.cs
- CellRelation.cs
- QueryStringParameter.cs
- Action.cs
- HttpResponseHeader.cs
- TransactionInformation.cs
- XsltFunctions.cs
- RowToFieldTransformer.cs
- PixelFormatConverter.cs
- HandlerFactoryWrapper.cs
- basevalidator.cs
- KnownAssemblyEntry.cs
- SqlClientWrapperSmiStreamChars.cs
- MetadataCache.cs
- OwnerDrawPropertyBag.cs
- XmlHierarchicalEnumerable.cs
- ValidationEventArgs.cs
- WebPartMenuStyle.cs
- RegisterInfo.cs
- DataGridTextColumn.cs
- CommandExpr.cs
- PageThemeBuildProvider.cs
- RemotingSurrogateSelector.cs
- ToolstripProfessionalRenderer.cs
- UriScheme.cs
- RegisteredScript.cs
- Utils.cs
- AutoGeneratedFieldProperties.cs
- EntityViewGenerationAttribute.cs
- WebPartManagerInternals.cs
- DataControlButton.cs
- ProcessHostMapPath.cs
- XmlTextWriter.cs
- HMACRIPEMD160.cs
- RegexMatchCollection.cs
- XmlNamespaceMappingCollection.cs
- x509utils.cs
- SQLBinary.cs
- PrintPageEvent.cs
- DesignerActionUIStateChangeEventArgs.cs
- UserNameSecurityToken.cs
- QueryResponse.cs
- Msec.cs
- RetrieveVirtualItemEventArgs.cs
- LinkDescriptor.cs
- ChildTable.cs
- Source.cs
- WorkerRequest.cs
- SocketElement.cs
- DataViewSetting.cs
- UntrustedRecipientException.cs
- WindowsListBox.cs
- TemplateInstanceAttribute.cs
- ItemCollection.cs
- ValueType.cs