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
- PeerResolver.cs
- TextTreeUndoUnit.cs
- SetterBase.cs
- BaseDataBoundControl.cs
- RangeValidator.cs
- RuleProcessor.cs
- AdRotatorDesigner.cs
- SingleKeyFrameCollection.cs
- DesignerForm.cs
- Scene3D.cs
- SecurityImpersonationBehavior.cs
- CompilerCollection.cs
- PrePrepareMethodAttribute.cs
- RsaKeyIdentifierClause.cs
- PerformanceCounterPermission.cs
- ButtonChrome.cs
- ExtensionSimplifierMarkupObject.cs
- MessageBuilder.cs
- MergablePropertyAttribute.cs
- JoinTreeNode.cs
- path.cs
- ContractMapping.cs
- ControlCodeDomSerializer.cs
- EventHandlersStore.cs
- PlatformNotSupportedException.cs
- ManualWorkflowSchedulerService.cs
- OperatingSystem.cs
- DetailsViewPagerRow.cs
- DateTimeParse.cs
- InvalidCommandTreeException.cs
- AuthenticationService.cs
- FloaterBaseParagraph.cs
- MappedMetaModel.cs
- SizeChangedEventArgs.cs
- DictionaryChange.cs
- SafeHandles.cs
- DrawingAttributesDefaultValueFactory.cs
- DrawingBrush.cs
- FrameworkElementFactoryMarkupObject.cs
- StreamSecurityUpgradeAcceptor.cs
- HostingEnvironmentException.cs
- HotCommands.cs
- HttpListenerException.cs
- AliasExpr.cs
- ObjectParameterCollection.cs
- SaveCardRequest.cs
- ConfigurationException.cs
- InvalidPrinterException.cs
- SwitchElementsCollection.cs
- UriSection.cs
- BaseAddressPrefixFilterElementCollection.cs
- MetadataArtifactLoaderFile.cs
- CodeEventReferenceExpression.cs
- RenderingEventArgs.cs
- Suspend.cs
- ExpandSegment.cs
- XsltFunctions.cs
- BatchStream.cs
- Splitter.cs
- basenumberconverter.cs
- XmlSignatureProperties.cs
- FormViewCommandEventArgs.cs
- DiffuseMaterial.cs
- TraceSection.cs
- LayoutTableCell.cs
- QueryContinueDragEventArgs.cs
- WebBrowsableAttribute.cs
- PropertyInformation.cs
- BindToObject.cs
- CacheAxisQuery.cs
- SqlIdentifier.cs
- _Semaphore.cs
- SqlComparer.cs
- UmAlQuraCalendar.cs
- _LocalDataStore.cs
- AccessDataSource.cs
- EventRoute.cs
- Viewport2DVisual3D.cs
- ColorContext.cs
- SqlDataSourceCommandEventArgs.cs
- AttributeUsageAttribute.cs
- FormsAuthenticationUserCollection.cs
- SimpleRecyclingCache.cs
- XDRSchema.cs
- Switch.cs
- BreakRecordTable.cs
- ListViewInsertEventArgs.cs
- TreeNodeCollection.cs
- FormsAuthentication.cs
- FileAuthorizationModule.cs
- RouteParametersHelper.cs
- ParenthesizePropertyNameAttribute.cs
- ArgumentNullException.cs
- DispatcherHookEventArgs.cs
- ResumeStoryboard.cs
- Timeline.cs
- TypeUnloadedException.cs
- PixelFormat.cs
- BufferedOutputStream.cs
- FontUnitConverter.cs