Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SqlDataSourceStatusEventArgs.cs / 1305376 / SqlDataSourceStatusEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections.Specialized; using System.Data; using System.Data.Common; public class SqlDataSourceStatusEventArgs : EventArgs { private DbCommand _command; private Exception _exception; private bool _exceptionHandled; private int _affectedRows; public SqlDataSourceStatusEventArgs(DbCommand command, int affectedRows, Exception exception) : base() { _command = command; _affectedRows = affectedRows; _exception = exception; } public int AffectedRows { get { return _affectedRows; } } public DbCommand Command { get { return _command; } } ////// If an exception was thrown by the command, this property will contain the exception. /// If there was no exception, the value will be null. /// public Exception Exception { get { return _exception; } } ////// If you wish to handle the exception using your own logic, set this value to true for it to be ignored by the control. /// If an exception was thrown and this value remains false, the exception will be re-thrown by the control. /// public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } } } // 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
- RecognizedPhrase.cs
- InvalidOleVariantTypeException.cs
- InternalTypeHelper.cs
- ActivationServices.cs
- Gdiplus.cs
- MonthChangedEventArgs.cs
- TouchFrameEventArgs.cs
- SettingsContext.cs
- DateTime.cs
- RegexMatchCollection.cs
- SqlStream.cs
- DataListCommandEventArgs.cs
- SspiNegotiationTokenProvider.cs
- wgx_sdk_version.cs
- NativeCompoundFileAPIs.cs
- XmlSerializerFaultFormatter.cs
- BeginEvent.cs
- KeyMatchBuilder.cs
- XPathEmptyIterator.cs
- XmlComplianceUtil.cs
- SortDescriptionCollection.cs
- FixedDocument.cs
- clipboard.cs
- FixedTextBuilder.cs
- ColumnResizeAdorner.cs
- CompoundFileDeflateTransform.cs
- MappedMetaModel.cs
- CatalogZoneAutoFormat.cs
- IndexExpression.cs
- DataServiceContext.cs
- TextViewSelectionProcessor.cs
- KoreanLunisolarCalendar.cs
- SourceInterpreter.cs
- OutputCacheProfile.cs
- ResourcesBuildProvider.cs
- NamespaceInfo.cs
- SimpleHandlerFactory.cs
- HuffCodec.cs
- FacetDescription.cs
- InProcStateClientManager.cs
- DiagnosticTraceSource.cs
- VirtualPathProvider.cs
- AnimationTimeline.cs
- WebPartTransformerAttribute.cs
- HostedHttpContext.cs
- IgnoreDeviceFilterElementCollection.cs
- TableDetailsRow.cs
- BooleanStorage.cs
- MsmqProcessProtocolHandler.cs
- HttpCacheVaryByContentEncodings.cs
- PropertyFilterAttribute.cs
- UncommonField.cs
- BoolExpression.cs
- ObjectIDGenerator.cs
- EntryPointNotFoundException.cs
- AttributeSetAction.cs
- RecordManager.cs
- HotCommands.cs
- Unit.cs
- RenderCapability.cs
- WorkflowDebuggerSteppingAttribute.cs
- FormatterConverter.cs
- DbProviderConfigurationHandler.cs
- DaylightTime.cs
- NTAccount.cs
- RectangleConverter.cs
- HttpCacheVaryByContentEncodings.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- HyperLinkField.cs
- DropShadowEffect.cs
- TypeUtils.cs
- Version.cs
- DictionaryGlobals.cs
- ReadWriteObjectLock.cs
- IfJoinedCondition.cs
- SatelliteContractVersionAttribute.cs
- DBSqlParserTableCollection.cs
- Help.cs
- QuaternionRotation3D.cs
- Semaphore.cs
- MetadataArtifactLoaderResource.cs
- DateTimeValueSerializer.cs
- WindowsIPAddress.cs
- SystemDropShadowChrome.cs
- NativeCppClassAttribute.cs
- GeneralTransform2DTo3DTo2D.cs
- RegexMatch.cs
- FileStream.cs
- WindowsNonControl.cs
- DataGridState.cs
- MetadataProperty.cs
- InitializationEventAttribute.cs
- TextWriterEngine.cs
- OutputCacheSettingsSection.cs
- OdbcConnectionFactory.cs
- DrawingCollection.cs
- SelectedDatesCollection.cs
- control.ime.cs
- PersianCalendar.cs
- ManagementOperationWatcher.cs