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
- NamedPipeProcessProtocolHandler.cs
- IPeerNeighbor.cs
- FormsAuthenticationTicket.cs
- SinglePageViewer.cs
- ProfileSettingsCollection.cs
- RuntimeArgumentHandle.cs
- ControlTemplate.cs
- AnnouncementInnerClientCD1.cs
- PaperSize.cs
- GridSplitter.cs
- UnionQueryOperator.cs
- FunctionQuery.cs
- DBConcurrencyException.cs
- HtmlTernaryTree.cs
- ResourceReader.cs
- RetrieveVirtualItemEventArgs.cs
- CodeSubDirectory.cs
- OdbcError.cs
- HelpFileFileNameEditor.cs
- Geometry3D.cs
- MessageQueuePermissionEntryCollection.cs
- XslNumber.cs
- MetadataWorkspace.cs
- CqlBlock.cs
- DetailsViewDeleteEventArgs.cs
- SpotLight.cs
- BoundPropertyEntry.cs
- CaseInsensitiveComparer.cs
- FieldAccessException.cs
- NonceCache.cs
- FamilyTypefaceCollection.cs
- EntityCollectionChangedParams.cs
- Icon.cs
- StorageTypeMapping.cs
- SafeNativeMethods.cs
- URI.cs
- RepeaterItemEventArgs.cs
- VBIdentifierNameEditor.cs
- ExceptionUtil.cs
- FixedHighlight.cs
- SqlStream.cs
- ApplicationFileParser.cs
- SaveFileDialogDesigner.cs
- ControlBindingsCollection.cs
- SRGSCompiler.cs
- ResourceExpressionBuilder.cs
- Nullable.cs
- CodeSubDirectory.cs
- ListViewItemEventArgs.cs
- IisTraceWebEventProvider.cs
- Pipe.cs
- Command.cs
- DataGridViewCellConverter.cs
- InputBinder.cs
- GridViewRowCollection.cs
- TypefaceMetricsCache.cs
- EntitySqlQueryCacheKey.cs
- WorkflowMarkupSerializerMapping.cs
- ManualResetEvent.cs
- LiteralLink.cs
- DataListComponentEditor.cs
- StylusPointProperties.cs
- FacetChecker.cs
- SqlConnectionHelper.cs
- AsyncCompletedEventArgs.cs
- EmptyQuery.cs
- DataContractSerializerSection.cs
- PropertyIDSet.cs
- XsltException.cs
- ToolStripRenderEventArgs.cs
- RootBrowserWindowAutomationPeer.cs
- DataTableCollection.cs
- SQLBytesStorage.cs
- AssemblyBuilder.cs
- CSharpCodeProvider.cs
- _IPv6Address.cs
- TextProperties.cs
- DataGridViewCellStyleEditor.cs
- CellIdBoolean.cs
- SocketAddress.cs
- WindowsFormsSynchronizationContext.cs
- MobileUserControl.cs
- SystemEvents.cs
- ResourceKey.cs
- Type.cs
- _AutoWebProxyScriptWrapper.cs
- AppDomain.cs
- DiscoveryServerProtocol.cs
- Currency.cs
- ComponentFactoryHelpers.cs
- SerializationUtility.cs
- IPAddressCollection.cs
- CompositeFontFamily.cs
- CheckBoxList.cs
- SoapCodeExporter.cs
- EdmProviderManifest.cs
- ResolvedKeyFrameEntry.cs
- ActivityExecutionContext.cs
- WeakEventManager.cs
- Trace.cs