Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / DetailsViewDeletedEventArgs.cs / 1 / DetailsViewDeletedEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Provides data for some events.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class DetailsViewDeletedEventArgs : EventArgs {
private int _affectedRows;
private Exception _exception;
private bool _exceptionHandled;
private IOrderedDictionary _keys;
private IOrderedDictionary _values;
///
/// Initializes a new instance of the
/// class.
///
public DetailsViewDeletedEventArgs(int affectedRows, Exception e) {
this._affectedRows = affectedRows;
this._exceptionHandled = false;
this._exception = e;
}
///
/// Gets the source of the command. This property is read-only.
///
public int AffectedRows {
get {
return _affectedRows;
}
}
///
/// Gets the exception (if any) that occurred during the operation. This property is read-only.
///
public Exception Exception {
get {
return _exception;
}
}
///
/// Gets a flag telling whether the exception was handled.
///
public bool ExceptionHandled {
get {
return _exceptionHandled;
}
set {
_exceptionHandled = value;
}
}
///
/// Gets a keyed list to populate with parameters that identify the row to delete. This property is read-only.
///
public IOrderedDictionary Keys {
get {
if (_keys == null) {
_keys = new OrderedDictionary();
}
return _keys;
}
}
///
/// Gets a keyed list to populate with old row values. This property is read-only.
///
public IOrderedDictionary Values {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
internal void SetKeys(IOrderedDictionary keys) {
_keys = keys;
}
internal void SetValues(IOrderedDictionary values) {
_values = values;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TemplatedMailWebEventProvider.cs
- BitmapEffectInputData.cs
- basemetadatamappingvisitor.cs
- StylusPointDescription.cs
- SelectedDatesCollection.cs
- InputScopeManager.cs
- MailFileEditor.cs
- PermissionRequestEvidence.cs
- QilReference.cs
- ColorTransform.cs
- InkCanvasSelection.cs
- TextSelectionProcessor.cs
- HttpCookieCollection.cs
- CompositionTarget.cs
- MergeLocalizationDirectives.cs
- ServiceBusyException.cs
- AutomationPropertyInfo.cs
- ExpandCollapseProviderWrapper.cs
- SectionVisual.cs
- CodeTypeOfExpression.cs
- SoapEnumAttribute.cs
- PageAsyncTask.cs
- BasicHttpSecurityMode.cs
- PieceNameHelper.cs
- _ListenerResponseStream.cs
- SqlClientFactory.cs
- DtcInterfaces.cs
- IDQuery.cs
- SyndicationSerializer.cs
- ArgumentNullException.cs
- SynchronizationLockException.cs
- HttpApplicationFactory.cs
- ActiveXHelper.cs
- HwndTarget.cs
- _LoggingObject.cs
- ColumnMapCopier.cs
- Vector3DCollectionConverter.cs
- IsolatedStorageFileStream.cs
- XmlSchemaAnyAttribute.cs
- EnvelopedPkcs7.cs
- XmlCodeExporter.cs
- CellLabel.cs
- SystemException.cs
- ThicknessKeyFrameCollection.cs
- SystemIPGlobalStatistics.cs
- InstanceHandleReference.cs
- ToolStripPanelRenderEventArgs.cs
- SelectionProviderWrapper.cs
- HitTestParameters.cs
- WorkflowExecutor.cs
- FormViewModeEventArgs.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ParseNumbers.cs
- ResourceProviderFactory.cs
- WebServiceHandler.cs
- ValidatorUtils.cs
- PackageProperties.cs
- CompilerState.cs
- CfgRule.cs
- TreeNodeClickEventArgs.cs
- CertificateElement.cs
- StylusShape.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- SoapCodeExporter.cs
- RightsManagementEncryptionTransform.cs
- TokenBasedSet.cs
- AutoResetEvent.cs
- ForeignKeyConstraint.cs
- OneOfConst.cs
- SignedInfo.cs
- DateTimeOffsetAdapter.cs
- ImageAttributes.cs
- BigInt.cs
- Selector.cs
- ScriptRegistrationManager.cs
- NullableConverter.cs
- ClockController.cs
- OutOfProcStateClientManager.cs
- TriggerCollection.cs
- ReachSerializableProperties.cs
- DataControlExtensions.cs
- DataContract.cs
- DbConnectionFactory.cs
- OracleInfoMessageEventArgs.cs
- Error.cs
- CrossAppDomainChannel.cs
- BamlLocalizableResource.cs
- WebPartVerb.cs
- ImplicitInputBrush.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- State.cs
- PartialCachingAttribute.cs
- UntrustedRecipientException.cs
- SendKeys.cs
- XmlnsCache.cs
- SurrogateSelector.cs
- RecognitionEventArgs.cs
- NegotiateStream.cs
- BindingNavigatorDesigner.cs
- AsymmetricSignatureDeformatter.cs