Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartVerb.cs
- TextRangeBase.cs
- NotifyParentPropertyAttribute.cs
- SchemaDeclBase.cs
- ImplicitInputBrush.cs
- ServiceObjectContainer.cs
- MessageSmuggler.cs
- ConfigurationException.cs
- IconHelper.cs
- ImageAttributes.cs
- DateTimeValueSerializerContext.cs
- TextMessageEncodingBindingElement.cs
- CodeGen.cs
- AutoSizeComboBox.cs
- GridViewSortEventArgs.cs
- SqlPersonalizationProvider.cs
- CommandBinding.cs
- MenuItemBindingCollection.cs
- SQLCharsStorage.cs
- XmlWriterDelegator.cs
- Typography.cs
- TimersDescriptionAttribute.cs
- Assert.cs
- CompositionCommandSet.cs
- LocalFileSettingsProvider.cs
- DataGrid.cs
- DataControlPagerLinkButton.cs
- XmlWriterSettings.cs
- QueryOutputWriter.cs
- BinHexEncoding.cs
- HtmlWindowCollection.cs
- ConfigurationElementProperty.cs
- TypeDescriptionProvider.cs
- BooleanExpr.cs
- OracleTransaction.cs
- Evidence.cs
- ProjectedSlot.cs
- UshortList2.cs
- ExpressionNode.cs
- TriState.cs
- PeerOutputChannel.cs
- WebResourceUtil.cs
- PrinterSettings.cs
- XXXInfos.cs
- ListMarkerSourceInfo.cs
- XmlTextAttribute.cs
- Int32.cs
- SiteMapSection.cs
- DynamicObjectAccessor.cs
- SamlAdvice.cs
- CollectionConverter.cs
- ValidationHelper.cs
- AccessedThroughPropertyAttribute.cs
- LinkConverter.cs
- WpfPayload.cs
- DataMemberAttribute.cs
- XmlAnyElementAttribute.cs
- DataServicePagingProviderWrapper.cs
- InlineUIContainer.cs
- DateTimeConstantAttribute.cs
- _RegBlobWebProxyDataBuilder.cs
- Internal.cs
- IPipelineRuntime.cs
- Int32Animation.cs
- SerializationInfoEnumerator.cs
- InvokePatternIdentifiers.cs
- QueryOutputWriterV1.cs
- NavigationProperty.cs
- StringArrayConverter.cs
- XmlC14NWriter.cs
- SymbolTable.cs
- ColorPalette.cs
- RequestCachingSection.cs
- DateTimeUtil.cs
- login.cs
- FontStretch.cs
- MDIWindowDialog.cs
- PathTooLongException.cs
- Parameter.cs
- DecoderBestFitFallback.cs
- Glyph.cs
- MessageLogger.cs
- OutputCacheProfile.cs
- QueryAccessibilityHelpEvent.cs
- GridEntryCollection.cs
- objectresult_tresulttype.cs
- Pen.cs
- WindowsRegion.cs
- securitycriticaldata.cs
- GridViewItemAutomationPeer.cs
- OrderedHashRepartitionEnumerator.cs
- ContainerControl.cs
- BasicExpandProvider.cs
- MouseWheelEventArgs.cs
- XmlQueryStaticData.cs
- HttpGetServerProtocol.cs
- FormViewDeletedEventArgs.cs
- ReservationCollection.cs
- recordstatescratchpad.cs
- TimeSpanStorage.cs