Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceSelectedEventArgs.cs / 1 / EntityDataSourceSelectedEventArgs.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner objsdev //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Objects; using System.Collections; namespace System.Web.UI.WebControls { public class EntityDataSourceSelectedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly IEnumerable _results = null; private readonly int _totalRowCount = 0; private readonly DataSourceSelectArguments _selectArguments; internal EntityDataSourceSelectedEventArgs(ObjectContext context, IEnumerable results, int totalRowCount, DataSourceSelectArguments selectArgs) { _context = context; _results = results; _totalRowCount = totalRowCount; _selectArguments = selectArgs; } internal EntityDataSourceSelectedEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public IEnumerable Results { get { return _results; } } public ObjectContext Context { get { return _context; } } public int TotalRowCount { get { return _totalRowCount; } } public DataSourceSelectArguments SelectArguments { get { return _selectArguments; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner objsdev //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Objects; using System.Collections; namespace System.Web.UI.WebControls { public class EntityDataSourceSelectedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly IEnumerable _results = null; private readonly int _totalRowCount = 0; private readonly DataSourceSelectArguments _selectArguments; internal EntityDataSourceSelectedEventArgs(ObjectContext context, IEnumerable results, int totalRowCount, DataSourceSelectArguments selectArgs) { _context = context; _results = results; _totalRowCount = totalRowCount; _selectArguments = selectArgs; } internal EntityDataSourceSelectedEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public IEnumerable Results { get { return _results; } } public ObjectContext Context { get { return _context; } } public int TotalRowCount { get { return _totalRowCount; } } public DataSourceSelectArguments SelectArguments { get { return _selectArguments; } } } } // 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
- SecureStringHasher.cs
- CodeMemberField.cs
- XmlCharCheckingReader.cs
- _LocalDataStoreMgr.cs
- ScalarType.cs
- ContainerVisual.cs
- RoleManagerModule.cs
- VisualBrush.cs
- SemaphoreFullException.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ContainerUtilities.cs
- Timer.cs
- TextBox.cs
- RequestCacheValidator.cs
- BuildProvider.cs
- EntityClassGenerator.cs
- InputLangChangeEvent.cs
- FixedPage.cs
- TrackingAnnotationCollection.cs
- Int32AnimationBase.cs
- HtmlElement.cs
- ItemType.cs
- IntegerFacetDescriptionElement.cs
- SafeNativeMethods.cs
- ProxyFragment.cs
- HtmlElementEventArgs.cs
- TreeNode.cs
- ScriptingProfileServiceSection.cs
- SqlVersion.cs
- DescendantBaseQuery.cs
- Events.cs
- DebuggerAttributes.cs
- TypeConverterHelper.cs
- ImageAnimator.cs
- DropDownButton.cs
- XXXOnTypeBuilderInstantiation.cs
- ValidatingPropertiesEventArgs.cs
- SafeNativeMemoryHandle.cs
- ProfileInfo.cs
- SamlSerializer.cs
- CustomCategoryAttribute.cs
- Light.cs
- XmlSchemaExporter.cs
- JulianCalendar.cs
- StatusBarItemAutomationPeer.cs
- WorkflowInstanceSuspendedRecord.cs
- XmlHierarchyData.cs
- VisualStates.cs
- GeneratedContractType.cs
- StringResourceManager.cs
- UnsafeNativeMethods.cs
- DragEventArgs.cs
- Vector.cs
- LZCodec.cs
- FileSystemWatcher.cs
- MenuItem.cs
- MetadataItemEmitter.cs
- XmlHierarchicalDataSourceView.cs
- AsyncPostBackErrorEventArgs.cs
- TypeElement.cs
- InvalidPrinterException.cs
- XmlCountingReader.cs
- LocatorBase.cs
- VisualBasicHelper.cs
- CheckBox.cs
- ConstructorNeedsTagAttribute.cs
- SessionPageStateSection.cs
- WindowsSecurityToken.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- InheritanceAttribute.cs
- StyleBamlRecordReader.cs
- SequentialWorkflowRootDesigner.cs
- PreservationFileReader.cs
- ClientReliableChannelBinder.cs
- PropertyOverridesDialog.cs
- IndentTextWriter.cs
- XpsDocument.cs
- ModelService.cs
- AssemblyNameEqualityComparer.cs
- ImageClickEventArgs.cs
- EDesignUtil.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- XamlPoint3DCollectionSerializer.cs
- PermissionSetTriple.cs
- PathGeometry.cs
- X509Certificate2Collection.cs
- DelimitedListTraceListener.cs
- ProxyWebPartManager.cs
- SourceElementsCollection.cs
- BaseUriHelper.cs
- PatternMatcher.cs
- ListView.cs
- LineBreakRecord.cs
- linebase.cs
- AssemblyHelper.cs
- AppSettingsExpressionBuilder.cs
- AuthorizationRuleCollection.cs
- FrugalList.cs
- SqlDependencyListener.cs