Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / FormViewDeletedEventArgs.cs / 1 / FormViewDeletedEventArgs.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 FormViewDeletedEventArgs : EventArgs {
private int _affectedRows;
private Exception _exception;
private bool _exceptionHandled;
private IOrderedDictionary _keys;
private IOrderedDictionary _values;
///
/// Initializes a new instance of the
/// class.
///
public FormViewDeletedEventArgs(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
- ListBindingConverter.cs
- FrameworkContentElementAutomationPeer.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- ProxyGenerator.cs
- AttributeQuery.cs
- SiteMembershipCondition.cs
- X509Utils.cs
- XmlTextReader.cs
- AudioFileOut.cs
- DbConnectionStringCommon.cs
- ThrowHelper.cs
- KoreanLunisolarCalendar.cs
- SchemaNotation.cs
- LabelDesigner.cs
- MachineKeySection.cs
- TriggerCollection.cs
- SignatureHelper.cs
- CacheManager.cs
- Storyboard.cs
- ClientScriptManagerWrapper.cs
- ErrorFormatterPage.cs
- SafeCryptoHandles.cs
- StorageMappingItemLoader.cs
- GroupByExpressionRewriter.cs
- _BufferOffsetSize.cs
- ServiceReference.cs
- ControlEvent.cs
- InputBinder.cs
- DurationConverter.cs
- TreeNodeClickEventArgs.cs
- glyphs.cs
- DispatcherHookEventArgs.cs
- OperationAbortedException.cs
- PersistenceProviderElement.cs
- DynamicValueConverter.cs
- PatternMatchRules.cs
- VideoDrawing.cs
- Compiler.cs
- ColumnMapProcessor.cs
- QilFunction.cs
- NumberFunctions.cs
- Ref.cs
- NegationPusher.cs
- EventArgs.cs
- RenderDataDrawingContext.cs
- Tracer.cs
- smtpconnection.cs
- InkCanvasInnerCanvas.cs
- EntityCommandExecutionException.cs
- DateTimeSerializationSection.cs
- LogEntryHeaderDeserializer.cs
- TemplateLookupAction.cs
- SimpleRecyclingCache.cs
- ContextQuery.cs
- TreeViewEvent.cs
- ReadOnlyTernaryTree.cs
- Propagator.ExtentPlaceholderCreator.cs
- TextProperties.cs
- CallId.cs
- smtppermission.cs
- XPathNode.cs
- DrawingGroupDrawingContext.cs
- ConfigXmlCDataSection.cs
- GuidTagList.cs
- UIElementIsland.cs
- MarshalByRefObject.cs
- SessionStateContainer.cs
- AuthenticationModuleElementCollection.cs
- RuntimeHelpers.cs
- Random.cs
- InputDevice.cs
- Debug.cs
- RC2CryptoServiceProvider.cs
- StorageEntityContainerMapping.cs
- GraphicsState.cs
- XslCompiledTransform.cs
- TrustLevelCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- MessageBox.cs
- xmlglyphRunInfo.cs
- LineProperties.cs
- MappingSource.cs
- XmlSchemaRedefine.cs
- TreeNodeEventArgs.cs
- PermissionSetEnumerator.cs
- MetadataArtifactLoaderFile.cs
- CardSpaceException.cs
- RayMeshGeometry3DHitTestResult.cs
- GradientStop.cs
- TTSEvent.cs
- TextCollapsingProperties.cs
- AppSettingsSection.cs
- XmlSchemaGroupRef.cs
- UdpChannelListener.cs
- IPAddress.cs
- JpegBitmapDecoder.cs
- InvalidProgramException.cs
- SqlCaseSimplifier.cs
- UrlPath.cs
- StatusBar.cs