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
- BinaryObjectWriter.cs
- DeploymentExceptionMapper.cs
- errorpatternmatcher.cs
- TemporaryBitmapFile.cs
- Command.cs
- RectangleHotSpot.cs
- XmlIgnoreAttribute.cs
- SafeCertificateStore.cs
- Visual3D.cs
- _SSPISessionCache.cs
- IpcClientManager.cs
- WebHeaderCollection.cs
- PersistChildrenAttribute.cs
- CompositeCollectionView.cs
- WhereQueryOperator.cs
- DbMetaDataCollectionNames.cs
- DataContractAttribute.cs
- RenderCapability.cs
- NavigationProperty.cs
- ComponentCommands.cs
- IBuiltInEvidence.cs
- SingleAnimation.cs
- SegmentInfo.cs
- DragEvent.cs
- XmlNavigatorFilter.cs
- ContextQuery.cs
- SafeArrayTypeMismatchException.cs
- StorageComplexTypeMapping.cs
- Literal.cs
- RoleBoolean.cs
- Exceptions.cs
- ToolStripGrip.cs
- Matrix.cs
- SwitchLevelAttribute.cs
- ObsoleteAttribute.cs
- VirtualPathUtility.cs
- AppDomainCompilerProxy.cs
- GetWinFXPath.cs
- BamlRecordWriter.cs
- TreeViewEvent.cs
- HwndAppCommandInputProvider.cs
- XmlWriter.cs
- XPathAncestorIterator.cs
- XPathDocumentIterator.cs
- MailAddressCollection.cs
- COM2IDispatchConverter.cs
- FormatterConverter.cs
- oledbmetadatacollectionnames.cs
- FullTextState.cs
- ConfigXmlDocument.cs
- DragCompletedEventArgs.cs
- WebMessageBodyStyleHelper.cs
- Select.cs
- MenuItemStyleCollection.cs
- EdmValidator.cs
- ModelToObjectValueConverter.cs
- Renderer.cs
- CreateUserWizardAutoFormat.cs
- grammarelement.cs
- XmlComment.cs
- StreamWriter.cs
- QuaternionAnimationUsingKeyFrames.cs
- ProxyWebPart.cs
- SymbolTable.cs
- FormViewDeletedEventArgs.cs
- FontSource.cs
- UnsafeNativeMethods.cs
- Sql8ExpressionRewriter.cs
- XmlSchemaAttributeGroupRef.cs
- ExceptionAggregator.cs
- WorkItem.cs
- TransformGroup.cs
- ProjectionPathSegment.cs
- StartFileNameEditor.cs
- PublisherIdentityPermission.cs
- X500Name.cs
- PropertyFilterAttribute.cs
- Vector3DValueSerializer.cs
- ContextProperty.cs
- TextSerializer.cs
- BamlLocalizer.cs
- SmtpNegotiateAuthenticationModule.cs
- ValidationEventArgs.cs
- ProfilePropertySettingsCollection.cs
- TdsParserSessionPool.cs
- HttpResponseInternalBase.cs
- CatalogPartChrome.cs
- DatePickerAutomationPeer.cs
- Adorner.cs
- InputLanguageManager.cs
- NeedSkipTokenVisitor.cs
- ProtocolViolationException.cs
- PlatformNotSupportedException.cs
- DataProtection.cs
- WindowProviderWrapper.cs
- BamlTreeUpdater.cs
- xsdvalidator.cs
- XmlSchemaObjectTable.cs
- FloaterBaseParaClient.cs
- PageTrueTypeFont.cs