Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- WhitespaceRuleLookup.cs
- SafeCryptContextHandle.cs
- BindValidationContext.cs
- StreamResourceInfo.cs
- PriorityChain.cs
- UmAlQuraCalendar.cs
- ConnectionStringSettings.cs
- DurableMessageDispatchInspector.cs
- DataListItem.cs
- SiblingIterators.cs
- ArrangedElement.cs
- ContentPlaceHolder.cs
- ReflectEventDescriptor.cs
- SessionStateItemCollection.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- SerializationSectionGroup.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- XamlClipboardData.cs
- WebPartManager.cs
- PerformanceCountersElement.cs
- HostProtectionPermission.cs
- RelationshipEndCollection.cs
- DataControlCommands.cs
- SqlVisitor.cs
- ElementProxy.cs
- FixedSOMTextRun.cs
- ClientSettings.cs
- RectValueSerializer.cs
- FontStretch.cs
- StoreContentChangedEventArgs.cs
- BaseInfoTable.cs
- SubMenuStyle.cs
- JumpTask.cs
- Int32EqualityComparer.cs
- OracleDataAdapter.cs
- Point3DConverter.cs
- XmlHierarchyData.cs
- ZipIOLocalFileHeader.cs
- Rect3DValueSerializer.cs
- Pool.cs
- RedirectionProxy.cs
- DoubleCollection.cs
- MoveSizeWinEventHandler.cs
- BasicExpressionVisitor.cs
- ClientRolePrincipal.cs
- HwndTarget.cs
- ActionFrame.cs
- SettingsPropertyNotFoundException.cs
- AstNode.cs
- AttachedAnnotationChangedEventArgs.cs
- CounterCreationData.cs
- TextEditorTyping.cs
- WebPartManager.cs
- safePerfProviderHandle.cs
- CustomErrorCollection.cs
- BitSet.cs
- ResourceContainer.cs
- GPRECT.cs
- FlowchartDesigner.Helpers.cs
- ServiceObjectContainer.cs
- RPIdentityRequirement.cs
- XDeferredAxisSource.cs
- Table.cs
- DefaultAssemblyResolver.cs
- InternalResources.cs
- HtmlWindow.cs
- CollectionViewSource.cs
- ValueChangedEventManager.cs
- OpCodes.cs
- COM2PropertyDescriptor.cs
- CodeTypeReferenceCollection.cs
- Rule.cs
- DataGridViewCellConverter.cs
- SqlDependencyListener.cs
- XmlDataLoader.cs
- BinaryFormatterWriter.cs
- XmlNotation.cs
- ThreadPoolTaskScheduler.cs
- _ContextAwareResult.cs
- TaiwanLunisolarCalendar.cs
- DecimalKeyFrameCollection.cs
- TaskFormBase.cs
- CompoundFileIOPermission.cs
- ObjectListCommandCollection.cs
- HTTPRemotingHandler.cs
- LocalizationParserHooks.cs
- ColorConvertedBitmap.cs
- ServerProtocol.cs
- AnimationStorage.cs
- CopyNodeSetAction.cs
- SortKey.cs
- NodeInfo.cs
- BamlBinaryReader.cs
- OdbcRowUpdatingEvent.cs
- UdpReplyToBehavior.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- WebPartConnectionsConnectVerb.cs
- Annotation.cs
- NavigationService.cs
- InputBindingCollection.cs