Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / ListViewDeleteEventArgs.cs / 1 / ListViewDeleteEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections.Specialized;
using System.ComponentModel;
namespace System.Web.UI.WebControls {
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ListViewDeleteEventArgs : CancelEventArgs {
private int _itemIndex;
private OrderedDictionary _values;
private OrderedDictionary _keys;
public ListViewDeleteEventArgs(int itemIndex) : base(false) {
_itemIndex = itemIndex;
}
///
/// Gets the int argument to the command posted to the . This property is read-only.
///
public int ItemIndex {
get {
return _itemIndex;
}
}
///
/// Gets a keyed list to populate with updated row values. This property is read-only.
///
public IOrderedDictionary Keys {
get {
if (_keys == null) {
_keys = new OrderedDictionary();
}
return _keys;
}
}
///
/// Gets a OrderedDictionary to populate with updated row values. This property is read-only.
///
public IOrderedDictionary Values {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections.Specialized;
using System.ComponentModel;
namespace System.Web.UI.WebControls {
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ListViewDeleteEventArgs : CancelEventArgs {
private int _itemIndex;
private OrderedDictionary _values;
private OrderedDictionary _keys;
public ListViewDeleteEventArgs(int itemIndex) : base(false) {
_itemIndex = itemIndex;
}
///
/// Gets the int argument to the command posted to the . This property is read-only.
///
public int ItemIndex {
get {
return _itemIndex;
}
}
///
/// Gets a keyed list to populate with updated row values. This property is read-only.
///
public IOrderedDictionary Keys {
get {
if (_keys == null) {
_keys = new OrderedDictionary();
}
return _keys;
}
}
///
/// Gets a OrderedDictionary to populate with updated row values. This property is read-only.
///
public IOrderedDictionary Values {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
}
}
// 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
- ReadOnlyHierarchicalDataSourceView.cs
- Mouse.cs
- AttributeCollection.cs
- OperatorExpressions.cs
- MobileControlBuilder.cs
- CompilerGlobalScopeAttribute.cs
- EntityConnection.cs
- CodeGotoStatement.cs
- Command.cs
- PropertyDescriptor.cs
- Window.cs
- cookie.cs
- IgnoreFileBuildProvider.cs
- EntityUtil.cs
- CustomCategoryAttribute.cs
- NetMsmqBindingElement.cs
- Rijndael.cs
- Int16Converter.cs
- CorrelationManager.cs
- InstanceDataCollectionCollection.cs
- TimelineClockCollection.cs
- TextStore.cs
- EdmFunction.cs
- CurrentChangingEventManager.cs
- Marshal.cs
- ObsoleteAttribute.cs
- DataGridViewRowPostPaintEventArgs.cs
- versioninfo.cs
- ReadOnlyTernaryTree.cs
- ClientTargetCollection.cs
- WinFormsSpinner.cs
- FirstMatchCodeGroup.cs
- RoleManagerEventArgs.cs
- Filter.cs
- PenContexts.cs
- BamlLocalizableResourceKey.cs
- LoginName.cs
- ConfigurationManagerHelper.cs
- DeferredTextReference.cs
- AttributeUsageAttribute.cs
- X509LogoTypeExtension.cs
- JavascriptCallbackMessageInspector.cs
- TemplateLookupAction.cs
- CircleHotSpot.cs
- RootProfilePropertySettingsCollection.cs
- __ConsoleStream.cs
- NavigationExpr.cs
- GenericAuthenticationEventArgs.cs
- Pens.cs
- TransactionContextValidator.cs
- EntityDataSourceState.cs
- RIPEMD160.cs
- ThemeDirectoryCompiler.cs
- Select.cs
- SelectionChangedEventArgs.cs
- AnimationLayer.cs
- CollectionsUtil.cs
- DefaultBinder.cs
- SerTrace.cs
- CngProperty.cs
- ProfileSettingsCollection.cs
- Documentation.cs
- SessionState.cs
- FixedSchema.cs
- UrlMapping.cs
- UntypedNullExpression.cs
- ConfigurationStrings.cs
- HttpCapabilitiesEvaluator.cs
- DateTime.cs
- WinEventTracker.cs
- AttachedAnnotationChangedEventArgs.cs
- DataGridViewRowCollection.cs
- DiagnosticStrings.cs
- ListViewDataItem.cs
- DataGridViewColumnTypeEditor.cs
- DataConnectionHelper.cs
- DataSourceXmlTextReader.cs
- WebPartChrome.cs
- DataGridLinkButton.cs
- DataGridViewDataErrorEventArgs.cs
- PropertyContainer.cs
- AlternateView.cs
- PropertySegmentSerializer.cs
- Events.cs
- XmlUtil.cs
- FrameDimension.cs
- ScrollBarAutomationPeer.cs
- DataGridRelationshipRow.cs
- CapabilitiesSection.cs
- CFGGrammar.cs
- _FtpDataStream.cs
- HierarchicalDataSourceDesigner.cs
- DataRecord.cs
- Utils.cs
- DeflateStream.cs
- CalculatedColumn.cs
- FusionWrap.cs
- Int32RectConverter.cs
- SourceLocationProvider.cs
- DateTimeOffset.cs