Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / LinqDataSourceStatusEventArgs.cs / 2 / 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
- WorkflowServiceHost.cs
- ValueConversionAttribute.cs
- URL.cs
- Trigger.cs
- HierarchicalDataTemplate.cs
- TreeNodeClickEventArgs.cs
- XmlAttributeProperties.cs
- OptimalTextSource.cs
- PopupControlService.cs
- AspNetSynchronizationContext.cs
- DependencyObjectPropertyDescriptor.cs
- PackageFilter.cs
- XmlDocumentFieldSchema.cs
- Blend.cs
- Completion.cs
- NullExtension.cs
- FlowDocumentView.cs
- PenCursorManager.cs
- CodePageEncoding.cs
- QilExpression.cs
- FixedSOMGroup.cs
- InputManager.cs
- AnonymousIdentificationSection.cs
- SqlDataAdapter.cs
- connectionpool.cs
- TextServicesContext.cs
- SkipQueryOptionExpression.cs
- PersonalizationStateInfo.cs
- XmlDataDocument.cs
- CngKeyCreationParameters.cs
- SchemaAttDef.cs
- DataGridPagerStyle.cs
- KeyPressEvent.cs
- XmlSerializerNamespaces.cs
- ObjectListCommandEventArgs.cs
- Win32.cs
- GeometryCollection.cs
- ShaderEffect.cs
- OdbcCommand.cs
- TemplatePropertyEntry.cs
- InputLanguage.cs
- SecurityPolicySection.cs
- CqlWriter.cs
- BatchWriter.cs
- PagesChangedEventArgs.cs
- _SSPIWrapper.cs
- EventLogInformation.cs
- TypeLoadException.cs
- BamlWriter.cs
- OleDbErrorCollection.cs
- WindowsTooltip.cs
- PerformanceCounterCategory.cs
- BitmapEffectRenderDataResource.cs
- EntityDataSourceContainerNameConverter.cs
- TextElementCollection.cs
- JsonByteArrayDataContract.cs
- EdmScalarPropertyAttribute.cs
- cache.cs
- EditorPartCollection.cs
- FirstQueryOperator.cs
- Cursor.cs
- SpeechUI.cs
- IntegerValidator.cs
- XhtmlMobileTextWriter.cs
- ProcessHost.cs
- ClickablePoint.cs
- XmlQueryType.cs
- DataServiceProviderMethods.cs
- SqlUserDefinedTypeAttribute.cs
- SqlDelegatedTransaction.cs
- XAMLParseException.cs
- GridErrorDlg.cs
- SQLDateTime.cs
- ClientTargetSection.cs
- documentsequencetextview.cs
- SimpleLine.cs
- WinInetCache.cs
- VarInfo.cs
- ElementAction.cs
- GeneralTransformGroup.cs
- WorkflowApplicationCompletedEventArgs.cs
- StrongName.cs
- StyleTypedPropertyAttribute.cs
- CommentEmitter.cs
- TextBoxAutoCompleteSourceConverter.cs
- RequestBringIntoViewEventArgs.cs
- BindToObject.cs
- WebScriptServiceHost.cs
- ClientFormsIdentity.cs
- IpcClientChannel.cs
- VisualStyleRenderer.cs
- DataControlButton.cs
- DllHostedComPlusServiceHost.cs
- AliasExpr.cs
- BrushValueSerializer.cs
- WindowsFormsSectionHandler.cs
- DataGridViewControlCollection.cs
- InheritanceAttribute.cs
- CacheChildrenQuery.cs
- Point3D.cs