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
- DiscriminatorMap.cs
- MatchingStyle.cs
- IMembershipProvider.cs
- FastPropertyAccessor.cs
- WeakReferenceKey.cs
- InternalDispatchObject.cs
- SponsorHelper.cs
- ValidationService.cs
- DbConnectionClosed.cs
- ToggleProviderWrapper.cs
- RTTypeWrapper.cs
- BatchServiceHost.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- BinaryQueryOperator.cs
- ElementHostAutomationPeer.cs
- ForeignKeyFactory.cs
- MultiByteCodec.cs
- Attributes.cs
- DropDownList.cs
- CompatibleIComparer.cs
- StringCollection.cs
- HttpResponseInternalWrapper.cs
- WrappedReader.cs
- ImageBrush.cs
- ContactManager.cs
- GridViewUpdateEventArgs.cs
- AppSettingsExpressionBuilder.cs
- XmlSignatureProperties.cs
- ACE.cs
- StoragePropertyMapping.cs
- WindowInteropHelper.cs
- MailDefinition.cs
- SiteMapSection.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- UriScheme.cs
- SynchronizationContext.cs
- CustomExpression.cs
- DataRelationPropertyDescriptor.cs
- MenuAdapter.cs
- MsmqIntegrationChannelListener.cs
- ToolConsole.cs
- GeneralTransform3DGroup.cs
- NamespaceInfo.cs
- XmlUtil.cs
- followingquery.cs
- ThreadStateException.cs
- TableLayoutColumnStyleCollection.cs
- DataColumnMapping.cs
- SqlParameterCollection.cs
- CheckBox.cs
- RtType.cs
- TraceSource.cs
- AppDomainManager.cs
- ComponentResourceKeyConverter.cs
- HttpDictionary.cs
- IndexingContentUnit.cs
- ZipFileInfoCollection.cs
- Pool.cs
- MailDefinition.cs
- DbProviderFactoriesConfigurationHandler.cs
- TimeManager.cs
- OrderByExpression.cs
- ProviderConnectionPointCollection.cs
- WebScriptEnablingBehavior.cs
- SplitterDesigner.cs
- OutputWindow.cs
- ParameterModifier.cs
- Walker.cs
- ProcessStartInfo.cs
- XmlSchemaCompilationSettings.cs
- XPathEmptyIterator.cs
- PartitionedStreamMerger.cs
- UnsafeNativeMethods.cs
- DataGridToolTip.cs
- MatrixCamera.cs
- ActivityCodeDomReferenceService.cs
- EdmComplexTypeAttribute.cs
- pingexception.cs
- PageSettings.cs
- XsdBuilder.cs
- XmlWriterSettings.cs
- XamlFilter.cs
- InstallerTypeAttribute.cs
- CodeCastExpression.cs
- ThreadAbortException.cs
- ControlBindingsCollection.cs
- Rotation3D.cs
- ScrollViewer.cs
- StructuralType.cs
- OrCondition.cs
- ConnectionPoolManager.cs
- AgileSafeNativeMemoryHandle.cs
- PerformanceCountersElement.cs
- ScalarRestriction.cs
- KeyboardNavigation.cs
- SchemaTableColumn.cs
- RequestCacheValidator.cs
- BufferAllocator.cs
- CodeLinePragma.cs
- NonVisualControlAttribute.cs