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
- HttpCapabilitiesBase.cs
- RegisteredScript.cs
- SecurityToken.cs
- WorkflowViewManager.cs
- Latin1Encoding.cs
- HostingEnvironmentWrapper.cs
- ValidationError.cs
- LineServices.cs
- FieldValue.cs
- NotifyParentPropertyAttribute.cs
- __Filters.cs
- PixelShader.cs
- InputMethodStateChangeEventArgs.cs
- InputElement.cs
- RuntimeHelpers.cs
- DataGridViewCellStyleEditor.cs
- RepeatBehavior.cs
- SessionStateItemCollection.cs
- ProvidePropertyAttribute.cs
- WhitespaceSignificantCollectionAttribute.cs
- ConnectionConsumerAttribute.cs
- HostProtectionPermission.cs
- CommonGetThemePartSize.cs
- IntegrationExceptionEventArgs.cs
- Matrix.cs
- BackStopAuthenticationModule.cs
- MtomMessageEncoder.cs
- DoubleAnimationUsingPath.cs
- ImageAutomationPeer.cs
- InfoCardArgumentException.cs
- FilteredXmlReader.cs
- CompilationUtil.cs
- TemplatedAdorner.cs
- listitem.cs
- filewebresponse.cs
- StorageAssociationSetMapping.cs
- ADConnectionHelper.cs
- ObjectSecurity.cs
- WebServiceMethodData.cs
- HttpCacheParams.cs
- HebrewCalendar.cs
- PropertyMapper.cs
- ListenerConstants.cs
- CodeIdentifier.cs
- OrderedDictionaryStateHelper.cs
- VisualBasic.cs
- DataAdapter.cs
- Trigger.cs
- NTAccount.cs
- ToolStripSystemRenderer.cs
- MoveSizeWinEventHandler.cs
- Storyboard.cs
- HtmlTableCell.cs
- StopStoryboard.cs
- FrameworkTextComposition.cs
- GrabHandleGlyph.cs
- DataService.cs
- HttpConfigurationSystem.cs
- InternalMappingException.cs
- DocumentGridContextMenu.cs
- ActivationService.cs
- OrderedDictionary.cs
- DataServiceQueryProvider.cs
- WebScriptMetadataMessageEncoderFactory.cs
- Switch.cs
- XPathArrayIterator.cs
- StorageMappingItemLoader.cs
- IdentityHolder.cs
- TrustSection.cs
- ObjectListCommandsPage.cs
- ByteStreamGeometryContext.cs
- Imaging.cs
- TrustManagerMoreInformation.cs
- MarkupWriter.cs
- HttpWebRequestElement.cs
- VisualCollection.cs
- RangeValuePattern.cs
- TextEditor.cs
- KeyedHashAlgorithm.cs
- serverconfig.cs
- UiaCoreProviderApi.cs
- HtmlInputFile.cs
- sqlnorm.cs
- PathData.cs
- ProfileSettingsCollection.cs
- StrongNameUtility.cs
- XslVisitor.cs
- QuaternionAnimationBase.cs
- CheckedPointers.cs
- storepermissionattribute.cs
- NestPullup.cs
- MouseDevice.cs
- DesignerToolStripControlHost.cs
- XmlAttribute.cs
- DiscoveryDocument.cs
- PerformanceCounterPermissionAttribute.cs
- MonitoringDescriptionAttribute.cs
- SoapAttributes.cs
- TextTreeTextNode.cs
- FixedSchema.cs