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
- PropertyEmitter.cs
- DynamicContractTypeBuilder.cs
- FixUpCollection.cs
- RemotingAttributes.cs
- SemaphoreSecurity.cs
- LongTypeConverter.cs
- CFGGrammar.cs
- ToolStripGrip.cs
- GradientStop.cs
- StringCollection.cs
- DesignTimeVisibleAttribute.cs
- StringValueSerializer.cs
- PropertyOrder.cs
- UInt32Converter.cs
- TextTabProperties.cs
- MenuItemBinding.cs
- DoubleCollection.cs
- ConfigurationStrings.cs
- MimeObjectFactory.cs
- IxmlLineInfo.cs
- UnmanagedBitmapWrapper.cs
- SystemEvents.cs
- ToolStripItemRenderEventArgs.cs
- CredentialCache.cs
- ValueExpressions.cs
- ValueType.cs
- HttpModulesSection.cs
- MultilineStringConverter.cs
- DataServiceProviderWrapper.cs
- ColorInterpolationModeValidation.cs
- TemplatePagerField.cs
- DataGrid.cs
- WinFormsUtils.cs
- PageAsyncTask.cs
- SpotLight.cs
- Rotation3DAnimationUsingKeyFrames.cs
- TreeNode.cs
- CreateParams.cs
- DirectoryRedirect.cs
- ExtenderProviderService.cs
- SendMailErrorEventArgs.cs
- SelectionPatternIdentifiers.cs
- SoapReflector.cs
- PrimitiveDataContract.cs
- DataSourceControlBuilder.cs
- ModuleBuilder.cs
- RC2.cs
- TraversalRequest.cs
- FixedSOMContainer.cs
- CodeSubDirectory.cs
- IteratorFilter.cs
- ListSortDescriptionCollection.cs
- ProcessModule.cs
- TablePattern.cs
- HwndHost.cs
- NativeMethods.cs
- CodeRemoveEventStatement.cs
- Section.cs
- LongValidatorAttribute.cs
- ProfileInfo.cs
- ComEventsMethod.cs
- Run.cs
- basenumberconverter.cs
- FixedSOMImage.cs
- IsolatedStorageFileStream.cs
- GridEntryCollection.cs
- ListBoxAutomationPeer.cs
- ParameterEditorUserControl.cs
- Overlapped.cs
- XsdBuildProvider.cs
- WebPartMenu.cs
- ChooseAction.cs
- StickyNoteAnnotations.cs
- DataTableTypeConverter.cs
- CounterSet.cs
- ManipulationStartedEventArgs.cs
- FocusWithinProperty.cs
- RegexParser.cs
- EdmToObjectNamespaceMap.cs
- SmiContext.cs
- FunctionUpdateCommand.cs
- TextClipboardData.cs
- FunctionImportMapping.cs
- PerformanceCounter.cs
- ConsoleTraceListener.cs
- GridViewColumnCollection.cs
- safesecurityhelperavalon.cs
- SettingsPropertyValueCollection.cs
- HashAlgorithm.cs
- Task.cs
- HandledEventArgs.cs
- Int32Converter.cs
- PathNode.cs
- InkSerializer.cs
- ComponentManagerBroker.cs
- XpsS0ValidatingLoader.cs
- SoapAttributes.cs
- WebPartEditorOkVerb.cs
- InvalidPropValue.cs
- GeometryHitTestParameters.cs