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
- ClusterRegistryConfigurationProvider.cs
- SvcMapFile.cs
- messageonlyhwndwrapper.cs
- DrawingContext.cs
- TemplatedControlDesigner.cs
- Style.cs
- CacheModeConverter.cs
- InternalResources.cs
- CommonProperties.cs
- WindowShowOrOpenTracker.cs
- TypefaceMetricsCache.cs
- DataGrid.cs
- WmfPlaceableFileHeader.cs
- MouseEvent.cs
- CompiledQuery.cs
- UndoManager.cs
- Timer.cs
- NameValueCollection.cs
- AnnotationService.cs
- XmlDocumentType.cs
- OleDbCommand.cs
- QilCloneVisitor.cs
- ItemsPresenter.cs
- XmlText.cs
- WrappedReader.cs
- HtmlShimManager.cs
- UriParserTemplates.cs
- RawStylusActions.cs
- TransactionScopeDesigner.cs
- NumberSubstitution.cs
- IndicCharClassifier.cs
- RSAPKCS1SignatureFormatter.cs
- RowToParametersTransformer.cs
- CompositionAdorner.cs
- ContainerUtilities.cs
- StrongNameKeyPair.cs
- FolderBrowserDialog.cs
- ReaderOutput.cs
- HtmlToClrEventProxy.cs
- DockingAttribute.cs
- XmlLanguage.cs
- StreamFormatter.cs
- HttpApplicationFactory.cs
- NavigationService.cs
- ToolStripAdornerWindowService.cs
- Rule.cs
- PrincipalPermission.cs
- Delegate.cs
- XmlAttributeAttribute.cs
- InitializingNewItemEventArgs.cs
- CqlErrorHelper.cs
- GeneralTransform2DTo3DTo2D.cs
- CurrentChangingEventManager.cs
- MultiTrigger.cs
- XmlQueryRuntime.cs
- ByValueEqualityComparer.cs
- dataobject.cs
- CodeParameterDeclarationExpression.cs
- Triangle.cs
- DocumentOrderComparer.cs
- WasAdminWrapper.cs
- CloseCryptoHandleRequest.cs
- EnumerableCollectionView.cs
- ThrowHelper.cs
- User.cs
- Attributes.cs
- HandledMouseEvent.cs
- AsymmetricAlgorithm.cs
- AssemblyInfo.cs
- IntegrationExceptionEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- BuildProviderUtils.cs
- RequestQueryProcessor.cs
- SoapProtocolImporter.cs
- SecurityCriticalDataForSet.cs
- PKCS1MaskGenerationMethod.cs
- IItemProperties.cs
- SoapHeader.cs
- ConcurrencyMode.cs
- AdCreatedEventArgs.cs
- WmlTextBoxAdapter.cs
- XmlValidatingReaderImpl.cs
- XPathNodeList.cs
- UserControlBuildProvider.cs
- PrintPreviewGraphics.cs
- JsonWriterDelegator.cs
- DataGridViewToolTip.cs
- FormsAuthenticationCredentials.cs
- CryptoStream.cs
- CodeCastExpression.cs
- RtfToken.cs
- SerializerProvider.cs
- BrushValueSerializer.cs
- PartialCachingControl.cs
- UnsafeNativeMethods.cs
- ExtendedPropertyCollection.cs
- PathFigureCollectionConverter.cs
- File.cs
- EntityProviderFactory.cs
- RecordsAffectedEventArgs.cs