Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / FormViewUpdatedEventArgs.cs / 1 / FormViewUpdatedEventArgs.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 FormViewUpdatedEventArgs : EventArgs {
private int _affectedRows;
private Exception _exception;
private bool _exceptionHandled;
private bool _keepInEditMode;
private IOrderedDictionary _values;
private IOrderedDictionary _keys;
private IOrderedDictionary _oldValues;
///
/// Initializes a new instance of the
/// class.
///
public FormViewUpdatedEventArgs(int affectedRows, Exception e) {
this._affectedRows = affectedRows;
this._exceptionHandled = false;
this._exception = e;
this._keepInEditMode = false;
}
///
/// 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 or sets whether the control should be rebound.
///
public bool KeepInEditMode {
get {
return _keepInEditMode;
}
set {
_keepInEditMode = value;
}
}
///
/// 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 NewValues {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
///
/// Gets a OrderedDictionary to populate with pre-edit row values. This property is read-only.
///
public IOrderedDictionary OldValues {
get {
if (_oldValues == null) {
_oldValues = new OrderedDictionary();
}
return _oldValues;
}
}
internal void SetKeys(IOrderedDictionary keys) {
_keys = keys;
}
internal void SetNewValues(IOrderedDictionary newValues) {
_values = newValues;
}
internal void SetOldValues(IOrderedDictionary oldValues) {
_oldValues = oldValues;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
//
// 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 FormViewUpdatedEventArgs : EventArgs {
private int _affectedRows;
private Exception _exception;
private bool _exceptionHandled;
private bool _keepInEditMode;
private IOrderedDictionary _values;
private IOrderedDictionary _keys;
private IOrderedDictionary _oldValues;
///
/// Initializes a new instance of the
/// class.
///
public FormViewUpdatedEventArgs(int affectedRows, Exception e) {
this._affectedRows = affectedRows;
this._exceptionHandled = false;
this._exception = e;
this._keepInEditMode = false;
}
///
/// 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 or sets whether the control should be rebound.
///
public bool KeepInEditMode {
get {
return _keepInEditMode;
}
set {
_keepInEditMode = value;
}
}
///
/// 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 NewValues {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
///
/// Gets a OrderedDictionary to populate with pre-edit row values. This property is read-only.
///
public IOrderedDictionary OldValues {
get {
if (_oldValues == null) {
_oldValues = new OrderedDictionary();
}
return _oldValues;
}
}
internal void SetKeys(IOrderedDictionary keys) {
_keys = keys;
}
internal void SetNewValues(IOrderedDictionary newValues) {
_values = newValues;
}
internal void SetOldValues(IOrderedDictionary oldValues) {
_oldValues = oldValues;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathQilFactory.cs
- DataGridViewRow.cs
- WebServicesSection.cs
- MetadataSource.cs
- ProgressiveCrcCalculatingStream.cs
- MiniLockedBorderGlyph.cs
- ManipulationDevice.cs
- IImplicitResourceProvider.cs
- DesignerToolboxInfo.cs
- _SingleItemRequestCache.cs
- Hyperlink.cs
- ManualResetEventSlim.cs
- Journaling.cs
- ExpressionsCollectionEditor.cs
- SingleQueryOperator.cs
- Debug.cs
- RecommendedAsConfigurableAttribute.cs
- xmlfixedPageInfo.cs
- EntityConnectionStringBuilderItem.cs
- ClientSponsor.cs
- SectionRecord.cs
- DriveNotFoundException.cs
- BaseDataBoundControl.cs
- TypeSystemProvider.cs
- StoreAnnotationsMap.cs
- UriTemplateLiteralQueryValue.cs
- Run.cs
- ConfigurationStrings.cs
- DBParameter.cs
- FormatterServices.cs
- InterleavedZipPartStream.cs
- HuffModule.cs
- XmlSchemaSimpleTypeRestriction.cs
- LinkButton.cs
- AppSettingsSection.cs
- EventLogPermissionEntry.cs
- GlobalProxySelection.cs
- XmlDocumentSchema.cs
- DecimalAnimation.cs
- EdgeModeValidation.cs
- SqlRowUpdatingEvent.cs
- ProviderIncompatibleException.cs
- COM2EnumConverter.cs
- Calendar.cs
- MenuBase.cs
- BamlWriter.cs
- StateWorkerRequest.cs
- RelatedImageListAttribute.cs
- ToolStripDropDownItem.cs
- TextEffect.cs
- DataGridRowHeader.cs
- TableRow.cs
- Rectangle.cs
- MetricEntry.cs
- TransformerTypeCollection.cs
- ColorInterpolationModeValidation.cs
- ConditionalAttribute.cs
- HtmlControlDesigner.cs
- TextCompositionEventArgs.cs
- ScriptReference.cs
- Polygon.cs
- Matrix3DConverter.cs
- Keywords.cs
- PenContexts.cs
- HotSpotCollection.cs
- SqlCacheDependencyDatabaseCollection.cs
- SqlTopReducer.cs
- ReflectTypeDescriptionProvider.cs
- MemberBinding.cs
- PartialTrustVisibleAssembliesSection.cs
- MdiWindowListStrip.cs
- GetWinFXPath.cs
- VerificationAttribute.cs
- SqlDataReaderSmi.cs
- TriggerActionCollection.cs
- PeerEndPoint.cs
- TabPageDesigner.cs
- PolicyDesigner.cs
- Cursor.cs
- MobileTemplatedControlDesigner.cs
- LineMetrics.cs
- UnsafeMethods.cs
- DBSqlParserTableCollection.cs
- RawStylusInputCustomDataList.cs
- TableSectionStyle.cs
- PropertyValue.cs
- DependencyPropertyChangedEventArgs.cs
- StringValidatorAttribute.cs
- DbMetaDataFactory.cs
- HttpApplicationStateBase.cs
- WebBrowserUriTypeConverter.cs
- WinFormsSpinner.cs
- QueryOutputWriter.cs
- EntityDataSource.cs
- LinkClickEvent.cs
- HtmlWindow.cs
- DirtyTextRange.cs
- DataGridViewCellConverter.cs
- SqlBinder.cs
- _PooledStream.cs