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
- RequestCache.cs
- ListSortDescriptionCollection.cs
- OrthographicCamera.cs
- WinInet.cs
- MenuAutomationPeer.cs
- QilExpression.cs
- ConstNode.cs
- TriggerAction.cs
- XslAstAnalyzer.cs
- UnauthorizedWebPart.cs
- COM2ICategorizePropertiesHandler.cs
- TypeSchema.cs
- TabControl.cs
- MULTI_QI.cs
- PropertyValueChangedEvent.cs
- Model3DGroup.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ContextMarshalException.cs
- HyperLinkDataBindingHandler.cs
- ItemChangedEventArgs.cs
- MainMenu.cs
- XamlStackWriter.cs
- CompModSwitches.cs
- ContentElementCollection.cs
- MimeObjectFactory.cs
- ConnectionsZone.cs
- ResourcePermissionBase.cs
- DataGridViewColumnCollection.cs
- Profiler.cs
- XmlDictionaryWriter.cs
- QueryOutputWriterV1.cs
- GenericTextProperties.cs
- ColorInterpolationModeValidation.cs
- DiagnosticsElement.cs
- DockPanel.cs
- UniqueConstraint.cs
- HttpCapabilitiesEvaluator.cs
- ErrorsHelper.cs
- BitmapMetadataBlob.cs
- MemberMaps.cs
- NativeMethods.cs
- Hashtable.cs
- ZipIOBlockManager.cs
- WasNotInstalledException.cs
- HashHelper.cs
- GridErrorDlg.cs
- RequestTimeoutManager.cs
- QuadraticBezierSegment.cs
- Queue.cs
- TickBar.cs
- ArcSegment.cs
- CompositeActivityMarkupSerializer.cs
- ResourceContainer.cs
- Drawing.cs
- DataTablePropertyDescriptor.cs
- RegisteredScript.cs
- BitmapEffectInputData.cs
- DoubleCollectionConverter.cs
- CustomBindingCollectionElement.cs
- PerformanceCounter.cs
- Journaling.cs
- Light.cs
- UdpContractFilterBehavior.cs
- PrintDialog.cs
- CompatibleComparer.cs
- EmptyQuery.cs
- DbConnectionPoolOptions.cs
- VirtualizedCellInfoCollection.cs
- OperationAbortedException.cs
- DataShape.cs
- InstancePersistenceEvent.cs
- MiniLockedBorderGlyph.cs
- FacetDescription.cs
- StructuralObject.cs
- FunctionNode.cs
- ExpanderAutomationPeer.cs
- Bitmap.cs
- Int64Storage.cs
- CompilationUtil.cs
- XamlSerializerUtil.cs
- BasicExpandProvider.cs
- HtmlInputFile.cs
- DataContractSerializerOperationGenerator.cs
- DataKeyPropertyAttribute.cs
- MouseGestureConverter.cs
- EventSchemaTraceListener.cs
- SequentialOutput.cs
- NetworkCredential.cs
- ReferenceEqualityComparer.cs
- DataGridViewRowCollection.cs
- NotSupportedException.cs
- SQLChars.cs
- EncodingTable.cs
- HtmlButton.cs
- HttpSessionStateWrapper.cs
- connectionpool.cs
- WebPartEditorOkVerb.cs
- EventLogTraceListener.cs
- CheckedPointers.cs
- DataGridViewColumnHeaderCell.cs