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
- XmlSchemaSimpleTypeUnion.cs
- DeviceFiltersSection.cs
- WebPart.cs
- DataTableClearEvent.cs
- Number.cs
- PolyBezierSegment.cs
- ItemCollectionEditor.cs
- ListSortDescription.cs
- CompositeControl.cs
- AutomationTextAttribute.cs
- ContentDisposition.cs
- XmlWellformedWriterHelpers.cs
- M3DUtil.cs
- ObjRef.cs
- objectquery_tresulttype.cs
- SchemaElementLookUpTable.cs
- ToolStripArrowRenderEventArgs.cs
- ObjectNotFoundException.cs
- XmlSchemaChoice.cs
- RewritingProcessor.cs
- ScriptMethodAttribute.cs
- SystemWebCachingSectionGroup.cs
- StatusBarAutomationPeer.cs
- X509CertificateCollection.cs
- HttpContextServiceHost.cs
- TCPListener.cs
- DigitShape.cs
- OutKeywords.cs
- PageBuildProvider.cs
- XmlUtil.cs
- BitmapSizeOptions.cs
- XmlRootAttribute.cs
- XmlWrappingReader.cs
- SingleAnimation.cs
- SqlReferenceCollection.cs
- SafeBitVector32.cs
- UIElementParagraph.cs
- CallSiteBinder.cs
- LocatorPart.cs
- OleDbReferenceCollection.cs
- DebugView.cs
- ProfileSection.cs
- ClientSettings.cs
- safex509handles.cs
- SqlDataRecord.cs
- WeakRefEnumerator.cs
- DBPropSet.cs
- Convert.cs
- FastEncoder.cs
- ACL.cs
- CustomBinding.cs
- TemplatePagerField.cs
- WinFormsSpinner.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- Debug.cs
- InProcStateClientManager.cs
- BufferedWebEventProvider.cs
- TextRangeEdit.cs
- querybuilder.cs
- ManifestSignedXml.cs
- BrowserCapabilitiesCompiler.cs
- LinkAreaEditor.cs
- StackSpiller.Bindings.cs
- ToolStripRenderer.cs
- EntityTypeEmitter.cs
- RequiredFieldValidator.cs
- ACE.cs
- StrongNamePublicKeyBlob.cs
- PropertyGeneratedEventArgs.cs
- SafeMILHandleMemoryPressure.cs
- HtmlInputFile.cs
- InternalTypeHelper.cs
- _UncName.cs
- HttpModulesSection.cs
- PageThemeCodeDomTreeGenerator.cs
- ImmutableObjectAttribute.cs
- WindowsStartMenu.cs
- XmlSchemaValidator.cs
- CodeArrayCreateExpression.cs
- EncoderFallback.cs
- MonikerUtility.cs
- QuadraticBezierSegment.cs
- ExponentialEase.cs
- EntityConnectionStringBuilder.cs
- PermissionSetTriple.cs
- RectAnimation.cs
- XmlAttributeHolder.cs
- Variant.cs
- Button.cs
- newitemfactory.cs
- SystemIPInterfaceProperties.cs
- SqlWorkflowPersistenceService.cs
- Win32MouseDevice.cs
- EventRouteFactory.cs
- HtmlFormWrapper.cs
- Misc.cs
- DoubleAnimationBase.cs
- LinkUtilities.cs
- DrawingGroup.cs
- FormParameter.cs