Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceSelectedEventArgs.cs / 1305376 / 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
- DelegatingTypeDescriptionProvider.cs
- SplitContainer.cs
- ClientScriptManagerWrapper.cs
- xsdvalidator.cs
- ProviderIncompatibleException.cs
- PropertyConverter.cs
- ContainerVisual.cs
- WebPartRestoreVerb.cs
- CollectionChangedEventManager.cs
- MarkerProperties.cs
- BindingElementCollection.cs
- CreateUserErrorEventArgs.cs
- EntryIndex.cs
- SQLDateTimeStorage.cs
- GraphicsContainer.cs
- httpstaticobjectscollection.cs
- XsltFunctions.cs
- GridViewSortEventArgs.cs
- WindowsAltTab.cs
- ServiceParser.cs
- BypassElementCollection.cs
- PartBasedPackageProperties.cs
- FormViewInsertEventArgs.cs
- Journaling.cs
- HttpCookiesSection.cs
- MailDefinition.cs
- AspNetSynchronizationContext.cs
- SettingsBindableAttribute.cs
- Root.cs
- CqlIdentifiers.cs
- BinaryParser.cs
- DataSetUtil.cs
- PathFigure.cs
- IgnoreFileBuildProvider.cs
- UniqueConstraint.cs
- XmlSortKey.cs
- UnionQueryOperator.cs
- FragmentNavigationEventArgs.cs
- UpdatableGenericsFeature.cs
- Knowncolors.cs
- CodeAccessSecurityEngine.cs
- Soap12ProtocolImporter.cs
- TransactionException.cs
- BinaryMethodMessage.cs
- DES.cs
- BoundColumn.cs
- XsdValidatingReader.cs
- NullReferenceException.cs
- ColorPalette.cs
- ToolStripStatusLabel.cs
- ToolBarPanel.cs
- EncryptedType.cs
- SafeFileHandle.cs
- ParallelEnumerable.cs
- SettingsAttributeDictionary.cs
- ButtonStandardAdapter.cs
- TimeSpanParse.cs
- GridViewDeletedEventArgs.cs
- XmlAttributeOverrides.cs
- IApplicationTrustManager.cs
- VolatileEnlistmentState.cs
- ToolStripGrip.cs
- DataTransferEventArgs.cs
- SizeConverter.cs
- ReadWriteControlDesigner.cs
- HGlobalSafeHandle.cs
- Popup.cs
- ImageMap.cs
- ErrorProvider.cs
- SystemNetworkInterface.cs
- PathFigureCollection.cs
- GeneralTransform3D.cs
- RequiredAttributeAttribute.cs
- DockProviderWrapper.cs
- Keywords.cs
- DrawingImage.cs
- IListConverters.cs
- RoutedEventArgs.cs
- DesignerContextDescriptor.cs
- ExtensionSimplifierMarkupObject.cs
- QilTypeChecker.cs
- InteropEnvironment.cs
- BaseParser.cs
- RouteValueDictionary.cs
- TreeViewBindingsEditor.cs
- HashMembershipCondition.cs
- BuildProviderAppliesToAttribute.cs
- ProviderSettingsCollection.cs
- Visitors.cs
- Int16Animation.cs
- MarkupExtensionParser.cs
- HTMLTextWriter.cs
- ToolboxControl.cs
- GlobalItem.cs
- StreamGeometry.cs
- ArgumentException.cs
- ReplacementText.cs
- SuspendDesigner.cs
- AccessDataSourceDesigner.cs
- ZipPackage.cs