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
- TemplateBaseAction.cs
- GridItem.cs
- GridItemPattern.cs
- DesignerOptions.cs
- XmlElementElementCollection.cs
- ElementAction.cs
- CompressStream.cs
- NotifyIcon.cs
- ContextDataSourceView.cs
- WorkflowDesignerMessageFilter.cs
- EFColumnProvider.cs
- ClientScriptManagerWrapper.cs
- GetWinFXPath.cs
- DetailsViewPageEventArgs.cs
- DataTableReaderListener.cs
- OuterGlowBitmapEffect.cs
- SByteConverter.cs
- DataServiceStreamResponse.cs
- SmtpTransport.cs
- AssertFilter.cs
- HttpRawResponse.cs
- ServiceMemoryGates.cs
- Triangle.cs
- FragmentQueryProcessor.cs
- EditorAttributeInfo.cs
- Transform.cs
- TrackingMemoryStream.cs
- MessageEventSubscriptionService.cs
- GraphicsPathIterator.cs
- HttpProfileBase.cs
- WebMessageEncodingBindingElement.cs
- CheckBoxField.cs
- NodeFunctions.cs
- BamlRecordWriter.cs
- FormsIdentity.cs
- GradientSpreadMethodValidation.cs
- XmlReflectionImporter.cs
- DataSourceListEditor.cs
- SequenceNumber.cs
- SuppressIldasmAttribute.cs
- RightsManagementEncryptionTransform.cs
- ChannelSettingsElement.cs
- ArrayTypeMismatchException.cs
- NativeMethods.cs
- MultiBindingExpression.cs
- NullableIntSumAggregationOperator.cs
- _HTTPDateParse.cs
- ToolStripOverflowButton.cs
- KeyEvent.cs
- ParameterCollection.cs
- __ComObject.cs
- ListParaClient.cs
- SoapAttributes.cs
- CookieParameter.cs
- ProvideValueServiceProvider.cs
- Formatter.cs
- PasswordRecovery.cs
- WorkflowTransactionService.cs
- ScrollItemPattern.cs
- BamlResourceDeserializer.cs
- InternalBase.cs
- CombinedGeometry.cs
- DefaultAsyncDataDispatcher.cs
- TextShapeableCharacters.cs
- WindowsServiceCredential.cs
- FullTrustAssembliesSection.cs
- CannotUnloadAppDomainException.cs
- Ray3DHitTestResult.cs
- HttpDictionary.cs
- ConfigXmlElement.cs
- BreakRecordTable.cs
- PropertyGridEditorPart.cs
- TargetException.cs
- Positioning.cs
- _SSPIWrapper.cs
- SqlNotificationEventArgs.cs
- ColorTransform.cs
- MobileControlsSectionHelper.cs
- DescriptionCreator.cs
- Scripts.cs
- SafeFindHandle.cs
- TypefaceCollection.cs
- VirtualDirectoryMapping.cs
- JsonReader.cs
- WindowAutomationPeer.cs
- SqlReorderer.cs
- TextParaClient.cs
- SqlColumnizer.cs
- ThreadAbortException.cs
- VersionedStreamOwner.cs
- CaseCqlBlock.cs
- Calendar.cs
- WorkflowDesigner.cs
- SapiRecognizer.cs
- RequiredAttributeAttribute.cs
- FontUnitConverter.cs
- MbpInfo.cs
- BuildProvider.cs
- Clock.cs
- HuffCodec.cs