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
- IDataContractSurrogate.cs
- AsyncContentLoadedEventArgs.cs
- MemoryFailPoint.cs
- sqlmetadatafactory.cs
- MeasurementDCInfo.cs
- DataPointer.cs
- DashStyle.cs
- _LoggingObject.cs
- XmlHierarchicalEnumerable.cs
- OdbcConnectionFactory.cs
- OdbcFactory.cs
- ParserOptions.cs
- StatusBarPanel.cs
- VariableModifiersHelper.cs
- XmlConvert.cs
- RemotingSurrogateSelector.cs
- ExtentKey.cs
- ServiceModelConfigurationSectionCollection.cs
- KeyGestureValueSerializer.cs
- Hash.cs
- OracleCommandSet.cs
- XPathMessageFilterElement.cs
- ToolStripSystemRenderer.cs
- DBPropSet.cs
- ClientSettingsSection.cs
- NetDataContractSerializer.cs
- SpellCheck.cs
- ControlValuePropertyAttribute.cs
- FieldAccessException.cs
- DeploymentSectionCache.cs
- GlyphTypeface.cs
- RequestCacheManager.cs
- WinFormsSpinner.cs
- MenuAdapter.cs
- RichTextBox.cs
- _HeaderInfoTable.cs
- OutOfProcStateClientManager.cs
- XmlnsCompatibleWithAttribute.cs
- ContentPlaceHolder.cs
- MouseBinding.cs
- XmlParserContext.cs
- XmlMapping.cs
- CacheChildrenQuery.cs
- TableLayoutSettingsTypeConverter.cs
- XmlConvert.cs
- Exception.cs
- LineMetrics.cs
- HMACSHA256.cs
- XmlDeclaration.cs
- UInt64.cs
- MimeBasePart.cs
- DecoderReplacementFallback.cs
- ToolStripSeparator.cs
- NavigationEventArgs.cs
- DocumentScope.cs
- HttpCacheParams.cs
- DataKey.cs
- ScrollProperties.cs
- ByteStream.cs
- TextChangedEventArgs.cs
- WebRequestModuleElementCollection.cs
- ConfigsHelper.cs
- DateTimeUtil.cs
- FilterElement.cs
- XmlArrayAttribute.cs
- TextOptionsInternal.cs
- XmlJsonWriter.cs
- ErrorTableItemStyle.cs
- CngAlgorithmGroup.cs
- ColorConvertedBitmap.cs
- QfeChecker.cs
- UnsafeNativeMethods.cs
- EtwTrackingBehaviorElement.cs
- HiddenFieldPageStatePersister.cs
- SystemIPv6InterfaceProperties.cs
- TypeInitializationException.cs
- XhtmlBasicLinkAdapter.cs
- SuppressMergeCheckAttribute.cs
- BaseTemplateBuildProvider.cs
- OdbcUtils.cs
- NodeFunctions.cs
- UrlMappingsModule.cs
- AnnotationComponentChooser.cs
- DataGridViewTextBoxEditingControl.cs
- ClientSettingsStore.cs
- X509Utils.cs
- ResolvedKeyFrameEntry.cs
- FSWPathEditor.cs
- PtsPage.cs
- DataControlReferenceCollection.cs
- AutomationElementCollection.cs
- Comparer.cs
- QilStrConcat.cs
- PageRouteHandler.cs
- XmlParserContext.cs
- dataprotectionpermission.cs
- UnionExpr.cs
- OracleBinary.cs
- XMLUtil.cs
- ConstantProjectedSlot.cs