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
- DependencySource.cs
- Item.cs
- HttpPostProtocolImporter.cs
- DeviceContexts.cs
- CachedBitmap.cs
- StrokeCollection.cs
- KeyManager.cs
- DecoderReplacementFallback.cs
- MailAddress.cs
- ListenerConfig.cs
- InfoCardUIAgent.cs
- EnlistmentState.cs
- TextWriter.cs
- CornerRadiusConverter.cs
- _StreamFramer.cs
- OleDbParameterCollection.cs
- ValidationHelper.cs
- MetadataArtifactLoaderFile.cs
- CodeAssignStatement.cs
- InertiaExpansionBehavior.cs
- XmlSchemaElement.cs
- UnSafeCharBuffer.cs
- _RequestLifetimeSetter.cs
- XPathNodeHelper.cs
- ButtonChrome.cs
- AssociationSetMetadata.cs
- NullToBooleanConverter.cs
- FormViewUpdatedEventArgs.cs
- ValidationSummary.cs
- XmlExceptionHelper.cs
- ContentPlaceHolder.cs
- DataViewManager.cs
- RootContext.cs
- WebPartDeleteVerb.cs
- HtmlInputRadioButton.cs
- Point3DAnimation.cs
- EntityClassGenerator.cs
- MeasureData.cs
- SqlCommandSet.cs
- PlaceHolder.cs
- DescendantOverDescendantQuery.cs
- EventProxy.cs
- HandlerMappingMemo.cs
- ListGeneralPage.cs
- TypeRefElement.cs
- DefaultDialogButtons.cs
- RankException.cs
- MailHeaderInfo.cs
- RecognitionEventArgs.cs
- RuleRef.cs
- HyperLinkColumn.cs
- Funcletizer.cs
- WebRequestModuleElementCollection.cs
- SolidBrush.cs
- DbConnectionClosed.cs
- CodeCatchClause.cs
- Int32Animation.cs
- DocumentPage.cs
- SchemaElementDecl.cs
- LogSwitch.cs
- HTMLTextWriter.cs
- RequestQueryProcessor.cs
- XmlBufferReader.cs
- BinaryFormatter.cs
- ClassGenerator.cs
- ReferenceService.cs
- UnsafeNativeMethods.cs
- CompositeActivityDesigner.cs
- ForwardPositionQuery.cs
- SqlCommandAsyncResult.cs
- Size.cs
- TraceProvider.cs
- XmlQueryRuntime.cs
- UTF32Encoding.cs
- HtmlInputFile.cs
- _SpnDictionary.cs
- CodeArrayCreateExpression.cs
- ToggleButtonAutomationPeer.cs
- InternalBufferManager.cs
- WindowsAuthenticationModule.cs
- OrderToken.cs
- HttpHandlersSection.cs
- ColorConverter.cs
- OdbcErrorCollection.cs
- AppSettingsReader.cs
- BooleanKeyFrameCollection.cs
- DataGridItemAutomationPeer.cs
- Connection.cs
- CancelEventArgs.cs
- ListViewSortEventArgs.cs
- XmlAttributeOverrides.cs
- Vector.cs
- XmlCharType.cs
- WaitHandle.cs
- DetailsViewDeletedEventArgs.cs
- NameValueFileSectionHandler.cs
- ContractComponent.cs
- ProtectedProviderSettings.cs
- CodeConstructor.cs
- FileRecordSequenceCompletedAsyncResult.cs