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
- SectionRecord.cs
- HttpRequestWrapper.cs
- regiisutil.cs
- TextEditor.cs
- ObjectContextServiceProvider.cs
- X509ImageLogo.cs
- XsdDateTime.cs
- WmfPlaceableFileHeader.cs
- StatusBarPanelClickEvent.cs
- UIElement.cs
- TextEditorDragDrop.cs
- BeginEvent.cs
- IDQuery.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- TimelineClockCollection.cs
- Attributes.cs
- AutomationPatternInfo.cs
- WindowsListViewScroll.cs
- DateTimeFormat.cs
- HttpRawResponse.cs
- SqlDataSourceCache.cs
- WebServiceEnumData.cs
- XmlSerializerAssemblyAttribute.cs
- CellQuery.cs
- ProxyWebPartConnectionCollection.cs
- NativeCompoundFileAPIs.cs
- WindowInteractionStateTracker.cs
- BamlTreeUpdater.cs
- PortCache.cs
- DetailsViewDeletedEventArgs.cs
- ProcessHost.cs
- VersionedStreamOwner.cs
- AxHost.cs
- CustomAttributeBuilder.cs
- XmlSchemaImporter.cs
- XPathSelfQuery.cs
- NativeMethods.cs
- HashCodeCombiner.cs
- XamlTemplateSerializer.cs
- TeredoHelper.cs
- ClientConfigurationSystem.cs
- PropertyValue.cs
- StructuredTypeEmitter.cs
- DisplayMemberTemplateSelector.cs
- ExceptionList.cs
- ExpandSegmentCollection.cs
- Boolean.cs
- PageClientProxyGenerator.cs
- Buffer.cs
- RsaKeyIdentifierClause.cs
- OdbcHandle.cs
- DefaultAutoFieldGenerator.cs
- ListViewPagedDataSource.cs
- Variant.cs
- PropertyValueChangedEvent.cs
- AbstractSvcMapFileLoader.cs
- EventMappingSettings.cs
- DelegatedStream.cs
- ModelServiceImpl.cs
- ListViewGroupItemCollection.cs
- XmlSchemaObjectTable.cs
- SQlBooleanStorage.cs
- ViewKeyConstraint.cs
- DetailsViewPagerRow.cs
- SiteMembershipCondition.cs
- ParallelDesigner.xaml.cs
- ComPlusDiagnosticTraceRecords.cs
- WebException.cs
- DataGridViewCellValidatingEventArgs.cs
- recordstatescratchpad.cs
- RuntimeComponentFilter.cs
- BufferAllocator.cs
- UInt16Converter.cs
- SByte.cs
- TextLine.cs
- FontFamilyIdentifier.cs
- SortableBindingList.cs
- ClientConfigPaths.cs
- SqlInternalConnection.cs
- StringKeyFrameCollection.cs
- XamlPointCollectionSerializer.cs
- InvalidComObjectException.cs
- TabItem.cs
- ReadOnlyDictionary.cs
- SqlServer2KCompatibilityCheck.cs
- ControllableStoryboardAction.cs
- TraceUtils.cs
- MD5CryptoServiceProvider.cs
- ProviderConnectionPoint.cs
- BitmapSizeOptions.cs
- CrossSiteScriptingValidation.cs
- ObjectManager.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DbConnectionStringBuilder.cs
- RadioButtonAutomationPeer.cs
- Dictionary.cs
- ObjectDataSourceEventArgs.cs
- LinkUtilities.cs
- QueryResponse.cs
- NativeMethods.cs