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
- PointValueSerializer.cs
- DataGridState.cs
- BehaviorEditorPart.cs
- TextDocumentView.cs
- RtfToXamlReader.cs
- ListControl.cs
- ContainerControl.cs
- SoapInteropTypes.cs
- ObjectConverter.cs
- CodeMemberEvent.cs
- SynchronizedInputProviderWrapper.cs
- DrawTreeNodeEventArgs.cs
- ProfileSection.cs
- ThemeDirectoryCompiler.cs
- SendKeys.cs
- SymbolType.cs
- CodeGotoStatement.cs
- DataAdapter.cs
- AutomationElement.cs
- EntityViewGenerator.cs
- NativeMethods.cs
- ECDiffieHellmanCngPublicKey.cs
- AuthenticationManager.cs
- FormatConvertedBitmap.cs
- XmlWriterSettings.cs
- NavigationWindow.cs
- RestClientProxyHandler.cs
- ReverseInheritProperty.cs
- FilterableAttribute.cs
- Signature.cs
- EncoderExceptionFallback.cs
- InputDevice.cs
- WebDescriptionAttribute.cs
- ThreadStateException.cs
- ProfileService.cs
- DocumentGrid.cs
- QuotedPairReader.cs
- CalendarDateChangedEventArgs.cs
- ProcessHostConfigUtils.cs
- CodeGen.cs
- PEFileReader.cs
- Polyline.cs
- BinaryNode.cs
- WindowsToolbar.cs
- TransactionFlowAttribute.cs
- StrokeCollectionDefaultValueFactory.cs
- TemplateFactory.cs
- ApplicationSecurityInfo.cs
- PublisherMembershipCondition.cs
- Panel.cs
- UpDownBase.cs
- EndpointDispatcherTable.cs
- SystemFonts.cs
- HttpRawResponse.cs
- TriState.cs
- Mappings.cs
- metadatamappinghashervisitor.cs
- ZipIOFileItemStream.cs
- PointHitTestParameters.cs
- HttpApplicationFactory.cs
- XmlComment.cs
- Zone.cs
- DesignerSerializationVisibilityAttribute.cs
- TdsParserStateObject.cs
- PathSegment.cs
- ProviderCommandInfoUtils.cs
- PerformanceCounterLib.cs
- EntityDataSourceContainerNameItem.cs
- AssociationSetEnd.cs
- FormClosingEvent.cs
- StorageInfo.cs
- ToolConsole.cs
- FusionWrap.cs
- AuthenticatedStream.cs
- Helper.cs
- DataGridColumnReorderingEventArgs.cs
- FixedSOMPage.cs
- HttpRawResponse.cs
- ProfileSection.cs
- Grant.cs
- RankException.cs
- HttpResponseHeader.cs
- DropSource.cs
- XmlObjectSerializerReadContextComplex.cs
- PriorityItem.cs
- Hyperlink.cs
- StorageComplexPropertyMapping.cs
- ZipArchive.cs
- login.cs
- SimpleBitVector32.cs
- VersionUtil.cs
- GridItemProviderWrapper.cs
- LinqDataSourceValidationException.cs
- EventTrigger.cs
- AppSettingsExpressionEditor.cs
- UIElementParagraph.cs
- XmlWellformedWriter.cs
- SchemaImporterExtension.cs
- DataService.cs
- LinqDataSourceDeleteEventArgs.cs