Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceSelectedEventArgs.cs / 1305376 / 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
- GetParentChain.cs
- PersonalizableTypeEntry.cs
- FieldAccessException.cs
- TransactionManager.cs
- Psha1DerivedKeyGeneratorHelper.cs
- OdbcException.cs
- SafeHandles.cs
- Vector3DConverter.cs
- TemplateInstanceAttribute.cs
- OneWayBindingElement.cs
- DataChangedEventManager.cs
- MetadataPropertyAttribute.cs
- BaseDataList.cs
- XomlCompilerResults.cs
- MasterPageParser.cs
- DoubleAnimationUsingPath.cs
- URLMembershipCondition.cs
- ContextInformation.cs
- SplitterEvent.cs
- FastEncoder.cs
- AstNode.cs
- PropertyPathWorker.cs
- QilName.cs
- CacheChildrenQuery.cs
- HttpModuleAction.cs
- XsdSchemaFileEditor.cs
- SqlCommand.cs
- CompareInfo.cs
- WebConvert.cs
- ToolBarButton.cs
- GridViewEditEventArgs.cs
- XmlObjectSerializer.cs
- HttpRawResponse.cs
- Thumb.cs
- ProxyAttribute.cs
- TaskFormBase.cs
- PathNode.cs
- VerticalAlignConverter.cs
- ActiveXSite.cs
- ColorMatrix.cs
- BinaryConverter.cs
- RawStylusInputCustomDataList.cs
- NullRuntimeConfig.cs
- SystemUnicastIPAddressInformation.cs
- XmlRawWriter.cs
- WorkflowServiceNamespace.cs
- DropShadowBitmapEffect.cs
- FastEncoder.cs
- ScriptingRoleServiceSection.cs
- QilCloneVisitor.cs
- FunctionMappingTranslator.cs
- DataSourceCache.cs
- WebPageTraceListener.cs
- LineVisual.cs
- SymbolMethod.cs
- BamlTreeNode.cs
- InputLanguage.cs
- ProcessHostConfigUtils.cs
- DataTrigger.cs
- XslVisitor.cs
- UrlParameterReader.cs
- DataColumnCollection.cs
- MsmqIntegrationChannelFactory.cs
- MasterPageBuildProvider.cs
- OdbcCommand.cs
- Material.cs
- TableLayoutColumnStyleCollection.cs
- EventSchemaTraceListener.cs
- BitmapCodecInfoInternal.cs
- DescendentsWalkerBase.cs
- SchemaImporterExtension.cs
- XmlSchemaProviderAttribute.cs
- AvTraceDetails.cs
- FixedDocument.cs
- CqlWriter.cs
- ListSourceHelper.cs
- XmlDocumentType.cs
- ToolStripRendererSwitcher.cs
- HtmlWindowCollection.cs
- FileSystemWatcher.cs
- QueryOptionExpression.cs
- ProfilePropertySettings.cs
- HostedNamedPipeTransportManager.cs
- XamlReaderHelper.cs
- MetadataCollection.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- BamlTreeMap.cs
- XmlSignatureManifest.cs
- DataGridViewLinkCell.cs
- NativeMethods.cs
- Interlocked.cs
- SqlDataSourceEnumerator.cs
- AutomationElement.cs
- SrgsRuleRef.cs
- UpdatePanelTrigger.cs
- WindowsFormsSectionHandler.cs
- PreservationFileWriter.cs
- StrokeCollectionDefaultValueFactory.cs
- UpdatePanelControlTrigger.cs
- DelayLoadType.cs