Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / FormViewDeletedEventArgs.cs / 1305376 / FormViewDeletedEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Collections.Specialized;
using System.ComponentModel;
///
/// Provides data for some events.
///
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;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Collections.Specialized;
using System.ComponentModel;
///
/// Provides data for some events.
///
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;
}
}
}
// 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
- DigestTraceRecordHelper.cs
- DataSpaceManager.cs
- Polygon.cs
- JpegBitmapEncoder.cs
- ToolStripPanelSelectionGlyph.cs
- StoreContentChangedEventArgs.cs
- DataExpression.cs
- Convert.cs
- CompilerWrapper.cs
- IIS7UserPrincipal.cs
- TerminatorSinks.cs
- XmlSchemaValidationException.cs
- TreeViewEvent.cs
- CalendarDataBindingHandler.cs
- FixedDSBuilder.cs
- View.cs
- DrawListViewItemEventArgs.cs
- UserControl.cs
- MessageQueuePermissionAttribute.cs
- RoutedPropertyChangedEventArgs.cs
- InvokeHandlers.cs
- SqlInternalConnectionSmi.cs
- TripleDES.cs
- DownloadProgressEventArgs.cs
- RoleManagerEventArgs.cs
- TraversalRequest.cs
- DataTableReaderListener.cs
- TimeZone.cs
- HttpPostClientProtocol.cs
- MetabaseServerConfig.cs
- PropertyChangedEventManager.cs
- BamlBinaryWriter.cs
- ConsoleCancelEventArgs.cs
- ConsoleTraceListener.cs
- ObjectDataSourceEventArgs.cs
- ContentControl.cs
- Point3DCollection.cs
- UnrecognizedAssertionsBindingElement.cs
- FirstMatchCodeGroup.cs
- validationstate.cs
- DataGridViewTextBoxCell.cs
- ScrollItemPatternIdentifiers.cs
- TextProviderWrapper.cs
- GrammarBuilderRuleRef.cs
- CmsInterop.cs
- Utility.cs
- Parser.cs
- Viewport3DAutomationPeer.cs
- DataObjectSettingDataEventArgs.cs
- WebPartManager.cs
- EventHandlerList.cs
- HtmlInputPassword.cs
- FixedFindEngine.cs
- EnvelopedPkcs7.cs
- FrameworkTemplate.cs
- CompiledELinqQueryState.cs
- ArraySet.cs
- InternalRelationshipCollection.cs
- GlobalizationSection.cs
- ScriptResourceAttribute.cs
- StrokeDescriptor.cs
- AbandonedMutexException.cs
- EdmError.cs
- TextFormatterContext.cs
- MemoryPressure.cs
- DrawingContext.cs
- LambdaCompiler.Binary.cs
- MultiBinding.cs
- OleCmdHelper.cs
- Brushes.cs
- DrawingVisualDrawingContext.cs
- DataTableMappingCollection.cs
- Stackframe.cs
- TextSegment.cs
- ScrollBarRenderer.cs
- WebPartTracker.cs
- ACE.cs
- HttpsHostedTransportConfiguration.cs
- Parallel.cs
- WindowsStartMenu.cs
- FormViewAutoFormat.cs
- ApplicationContext.cs
- JsonStringDataContract.cs
- BlockUIContainer.cs
- XmlNamespaceDeclarationsAttribute.cs
- LinqDataSource.cs
- SerialPinChanges.cs
- HWStack.cs
- EntitySetBaseCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- DesignBinding.cs
- LinearGradientBrush.cs
- HierarchicalDataBoundControl.cs
- ScrollBar.cs
- DataSourceListEditor.cs
- SerialPort.cs
- MessageQueueConverter.cs
- RemoteWebConfigurationHost.cs
- SafeNativeMethods.cs
- DragCompletedEventArgs.cs