Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / LinqDataSourceStatusEventArgs.cs / 1 / LinqDataSourceStatusEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] public class LinqDataSourceStatusEventArgs : EventArgs { private Exception _exception; private bool _exceptionHandled; private object _result; private int _totalRowCount = -1; public LinqDataSourceStatusEventArgs(object result) { _result = result; } public LinqDataSourceStatusEventArgs(object result, int totalRowCount) { _result = result; _totalRowCount = totalRowCount; } public LinqDataSourceStatusEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public object Result { get { return _result; } } public int TotalRowCount { get { return _totalRowCount; } } } } // 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.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] public class LinqDataSourceStatusEventArgs : EventArgs { private Exception _exception; private bool _exceptionHandled; private object _result; private int _totalRowCount = -1; public LinqDataSourceStatusEventArgs(object result) { _result = result; } public LinqDataSourceStatusEventArgs(object result, int totalRowCount) { _result = result; _totalRowCount = totalRowCount; } public LinqDataSourceStatusEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public object Result { get { return _result; } } public int TotalRowCount { get { return _totalRowCount; } } } } // 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
- SchemaManager.cs
- SiteMapNodeItemEventArgs.cs
- SequentialActivityDesigner.cs
- SQLResource.cs
- WrappedKeySecurityTokenParameters.cs
- HandlerMappingMemo.cs
- FaultBookmark.cs
- SafeEventLogReadHandle.cs
- CryptoKeySecurity.cs
- PeerNameRecord.cs
- XmlDataSourceNodeDescriptor.cs
- ToolboxControl.cs
- RadioButton.cs
- PrivacyNoticeElement.cs
- KeyValuePairs.cs
- MimeXmlImporter.cs
- Quaternion.cs
- UserPreference.cs
- SctClaimSerializer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Vector3DValueSerializer.cs
- SmtpClient.cs
- XsdBuildProvider.cs
- CodeAttributeArgument.cs
- AuthenticationException.cs
- TimeZoneInfo.cs
- PeekCompletedEventArgs.cs
- ThreadTrace.cs
- HtmlTitle.cs
- StackBuilderSink.cs
- KeyPressEvent.cs
- PropertyConverter.cs
- LinqDataSourceDeleteEventArgs.cs
- HwndKeyboardInputProvider.cs
- UnsafeNativeMethods.cs
- ClientOptions.cs
- ToggleButton.cs
- ResourceDescriptionAttribute.cs
- ToolTipAutomationPeer.cs
- AllMembershipCondition.cs
- BatchServiceHost.cs
- ZipIOFileItemStream.cs
- ScrollableControl.cs
- HotSpotCollection.cs
- RequestDescription.cs
- TypeExtensions.cs
- TemplateControlParser.cs
- MessageFilter.cs
- MinimizableAttributeTypeConverter.cs
- QilGeneratorEnv.cs
- ClientConfigurationSystem.cs
- IPEndPoint.cs
- SkewTransform.cs
- TreeNodeStyleCollection.cs
- RawTextInputReport.cs
- XmlHierarchicalDataSourceView.cs
- SubstitutionList.cs
- EntityDataSourceContainerNameConverter.cs
- ICspAsymmetricAlgorithm.cs
- SystemUdpStatistics.cs
- RepeaterItemCollection.cs
- TextEffect.cs
- ToolStripGripRenderEventArgs.cs
- ResourceReferenceKeyNotFoundException.cs
- WindowAutomationPeer.cs
- AppliesToBehaviorDecisionTable.cs
- IntSecurity.cs
- ApplicationDirectory.cs
- ResXResourceReader.cs
- Errors.cs
- DateTimeUtil.cs
- StringUtil.cs
- Token.cs
- _ListenerRequestStream.cs
- Ref.cs
- Dynamic.cs
- ObjectPersistData.cs
- SafeCryptContextHandle.cs
- TextCollapsingProperties.cs
- AttributeEmitter.cs
- ThemeConfigurationDialog.cs
- CellTreeSimplifier.cs
- SqlVisitor.cs
- HierarchicalDataBoundControlAdapter.cs
- RuntimeConfig.cs
- AncillaryOps.cs
- Menu.cs
- XmlComment.cs
- TableCell.cs
- DoubleLinkList.cs
- PtsContext.cs
- ISCIIEncoding.cs
- UserCancellationException.cs
- sqlpipe.cs
- FixedSOMPageConstructor.cs
- Content.cs
- WebServiceTypeData.cs
- Camera.cs
- EastAsianLunisolarCalendar.cs
- CommandPlan.cs