Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HttpFileCollectionWrapper.cs
- GenericXmlSecurityTokenAuthenticator.cs
- StylusDownEventArgs.cs
- PackWebRequestFactory.cs
- LeafCellTreeNode.cs
- RegexGroupCollection.cs
- TransportationConfigurationTypeInstallComponent.cs
- MessageSecurityOverMsmq.cs
- StrongNamePublicKeyBlob.cs
- DataSvcMapFile.cs
- Line.cs
- JulianCalendar.cs
- OperationAbortedException.cs
- Partitioner.cs
- DataServiceQueryOfT.cs
- LiteralControl.cs
- ArrangedElementCollection.cs
- SourceLocationProvider.cs
- Random.cs
- MailAddress.cs
- NamedObject.cs
- ConfigurationPropertyAttribute.cs
- Expressions.cs
- PrintingPermission.cs
- VectorCollectionConverter.cs
- PolicyStatement.cs
- ErrorFormatterPage.cs
- ChoiceConverter.cs
- TopClause.cs
- BaseDataBoundControlDesigner.cs
- GlyphRun.cs
- PersonalizationAdministration.cs
- ReadOnlyHierarchicalDataSource.cs
- basevalidator.cs
- ClosableStream.cs
- StylusPointProperties.cs
- PenCursorManager.cs
- OutOfMemoryException.cs
- WebPartVerb.cs
- HttpServerVarsCollection.cs
- AnnotationResourceChangedEventArgs.cs
- FaultHandlingFilter.cs
- GreenMethods.cs
- StorageFunctionMapping.cs
- DbMetaDataFactory.cs
- AppDomainGrammarProxy.cs
- DataGridViewCellConverter.cs
- XPathNavigatorKeyComparer.cs
- AccessText.cs
- CommandManager.cs
- XmlNodeComparer.cs
- TextTreeText.cs
- IODescriptionAttribute.cs
- ScrollItemPattern.cs
- initElementDictionary.cs
- Resources.Designer.cs
- JavaScriptObjectDeserializer.cs
- OdbcFactory.cs
- DynamicRenderer.cs
- InvalidOleVariantTypeException.cs
- CdpEqualityComparer.cs
- FrameworkContextData.cs
- ResourceProperty.cs
- ProcessHostMapPath.cs
- QilIterator.cs
- RtfControls.cs
- PreviousTrackingServiceAttribute.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ClientRuntimeConfig.cs
- SafeReadContext.cs
- SystemDropShadowChrome.cs
- ZipArchive.cs
- TemplateColumn.cs
- StreamingContext.cs
- RoutedEventConverter.cs
- DomainLiteralReader.cs
- Hash.cs
- HelpKeywordAttribute.cs
- IIS7UserPrincipal.cs
- XmlSchemaGroupRef.cs
- EdmToObjectNamespaceMap.cs
- ComponentEditorForm.cs
- GridView.cs
- BuildResultCache.cs
- AudioStateChangedEventArgs.cs
- BaseDataListDesigner.cs
- BuildManager.cs
- LayoutTableCell.cs
- _ConnectionGroup.cs
- CharacterMetrics.cs
- ApplicationManager.cs
- TextBoxBase.cs
- FrameworkRichTextComposition.cs
- ListViewSelectEventArgs.cs
- String.cs
- ProviderMetadataCachedInformation.cs
- RegexCharClass.cs
- LicFileLicenseProvider.cs
- ResponseStream.cs
- PropertyFilter.cs