Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / DetailsViewInsertedEventArgs.cs / 1 / DetailsViewInsertedEventArgs.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 DetailsViewInsertedEventArgs : EventArgs {
private int _affectedRows;
private Exception _exception;
private bool _exceptionHandled;
private bool _keepInInsertMode;
private IOrderedDictionary _values;
///
/// Initializes a new instance of the
/// class.
///
public DetailsViewInsertedEventArgs(int affectedRows, Exception e) {
this._affectedRows = affectedRows;
this._exceptionHandled = false;
this._exception = e;
this._keepInInsertMode = 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 KeepInInsertMode {
get {
return _keepInInsertMode;
}
set {
_keepInInsertMode = value;
}
}
///
/// Gets a OrderedDictionary to populate with inserted row values. This property is read-only.
///
public IOrderedDictionary Values {
get {
if (_values == null) {
_values = new OrderedDictionary();
}
return _values;
}
}
internal void SetValues(IOrderedDictionary values) {
_values = values;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HyperLinkColumn.cs
- XmlProcessingInstruction.cs
- GlyphingCache.cs
- SettingsBindableAttribute.cs
- EUCJPEncoding.cs
- MenuScrollingVisibilityConverter.cs
- VectorCollectionValueSerializer.cs
- SchemaType.cs
- StringConcat.cs
- WebResourceAttribute.cs
- MemberInfoSerializationHolder.cs
- QueryIntervalOp.cs
- MLangCodePageEncoding.cs
- WebPartMenuStyle.cs
- ConstructorExpr.cs
- recordstatescratchpad.cs
- TargetException.cs
- WebPartAddingEventArgs.cs
- MatrixUtil.cs
- ProtocolsSection.cs
- QuaternionAnimationBase.cs
- CFStream.cs
- PerformanceCounterPermissionEntryCollection.cs
- ComMethodElementCollection.cs
- LocalizationComments.cs
- TdsParserHelperClasses.cs
- TiffBitmapDecoder.cs
- SmiRecordBuffer.cs
- TargetException.cs
- FrameworkElementFactoryMarkupObject.cs
- SchemaType.cs
- printdlgexmarshaler.cs
- SearchForVirtualItemEventArgs.cs
- ChildTable.cs
- PageContentAsyncResult.cs
- SqlDataSourceSummaryPanel.cs
- PageHandlerFactory.cs
- SettingsAttributes.cs
- FastEncoderWindow.cs
- _MultipleConnectAsync.cs
- TreeViewImageKeyConverter.cs
- Console.cs
- SoapInteropTypes.cs
- Pkcs7Signer.cs
- WebPartDescriptionCollection.cs
- QilReplaceVisitor.cs
- ReliableRequestSessionChannel.cs
- StatusBarItem.cs
- UInt64Converter.cs
- Debug.cs
- WebBrowserHelper.cs
- CapabilitiesState.cs
- SudsCommon.cs
- FrameworkElementFactoryMarkupObject.cs
- XmlSchemaGroupRef.cs
- ImageDrawing.cs
- FontNamesConverter.cs
- Html32TextWriter.cs
- ExceptionHandler.cs
- DiffuseMaterial.cs
- ContractInstanceProvider.cs
- InheritanceRules.cs
- LiteralDesigner.cs
- EventListenerClientSide.cs
- DataKey.cs
- ExpressionServices.cs
- EventLogPermissionEntryCollection.cs
- ContextDataSourceContextData.cs
- FormsAuthenticationUserCollection.cs
- RegexInterpreter.cs
- UnsafeNativeMethods.cs
- TransformationRules.cs
- ListenerElementsCollection.cs
- ClientBuildManagerCallback.cs
- ResourceDescriptionAttribute.cs
- EtwTrace.cs
- RectConverter.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- XamlRtfConverter.cs
- Mappings.cs
- DataObject.cs
- WaitForChangedResult.cs
- CacheSection.cs
- OleDbCommand.cs
- GridViewCellAutomationPeer.cs
- TableLayoutSettingsTypeConverter.cs
- DynamicVirtualDiscoSearcher.cs
- HtmlShimManager.cs
- Funcletizer.cs
- NumberFormatInfo.cs
- HtmlControlPersistable.cs
- XmlDataSourceDesigner.cs
- CodeMemberEvent.cs
- SupportsPreviewControlAttribute.cs
- PropertyAccessVisitor.cs
- SubpageParaClient.cs
- SatelliteContractVersionAttribute.cs
- PlanCompiler.cs
- HandledEventArgs.cs
- SchemaObjectWriter.cs