Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangedEventArgs.cs / 1305376 / EntityDataSourceChangedEventArgs.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;
namespace System.Web.UI.WebControls
{
public class EntityDataSourceChangedEventArgs : EventArgs
{
private readonly ObjectContext _context;
private readonly Exception _exception = null;
private bool _exceptionHandled = false;
private readonly object _entity = null;
internal EntityDataSourceChangedEventArgs(ObjectContext context, object entity)
{
_context = context;
_entity = entity;
}
internal EntityDataSourceChangedEventArgs(Exception exception)
{
_exception = exception;
}
public Exception Exception
{
get { return _exception; }
}
public bool ExceptionHandled
{
get { return _exceptionHandled; }
set { _exceptionHandled = value; }
}
public object Entity
{
get { return _entity; }
}
public ObjectContext Context
{
get { return _context; }
}
}
}
// 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
- RangeValidator.cs
- BuildProvidersCompiler.cs
- CacheOutputQuery.cs
- Adorner.cs
- SpecialTypeDataContract.cs
- NestedContainer.cs
- FontFamily.cs
- CompositionAdorner.cs
- ElementsClipboardData.cs
- XmlDocumentSerializer.cs
- formatstringdialog.cs
- Label.cs
- NumericExpr.cs
- RegexGroupCollection.cs
- DataGridViewButtonColumn.cs
- InstanceDataCollection.cs
- ContainerParagraph.cs
- XComponentModel.cs
- DependencyPropertyDescriptor.cs
- BidOverLoads.cs
- XsltQilFactory.cs
- DrawingImage.cs
- DbConnectionPoolGroupProviderInfo.cs
- DataSourceView.cs
- TypedReference.cs
- unsafeIndexingFilterStream.cs
- CookielessHelper.cs
- HatchBrush.cs
- QueryTaskGroupState.cs
- dataprotectionpermissionattribute.cs
- RowToParametersTransformer.cs
- LayoutExceptionEventArgs.cs
- TemplateField.cs
- ScriptResourceMapping.cs
- CallSiteBinder.cs
- ConnectionProviderAttribute.cs
- ZeroOpNode.cs
- querybuilder.cs
- Identity.cs
- TextCharacters.cs
- ToolBarButtonClickEvent.cs
- serverconfig.cs
- HttpContextServiceHost.cs
- TextElementAutomationPeer.cs
- Registry.cs
- HyperLinkDataBindingHandler.cs
- TypefaceMetricsCache.cs
- OdbcException.cs
- AnonymousIdentificationModule.cs
- lengthconverter.cs
- GeometryDrawing.cs
- SuppressMergeCheckAttribute.cs
- PresentationAppDomainManager.cs
- TempFiles.cs
- SourceFileBuildProvider.cs
- Expressions.cs
- HyperlinkAutomationPeer.cs
- GraphicsContext.cs
- SchemaImporterExtension.cs
- VisualTreeUtils.cs
- RadioButtonList.cs
- ResponseBodyWriter.cs
- securitycriticaldataformultiplegetandset.cs
- TableLayout.cs
- ValidationVisibilityAttribute.cs
- XmlSchemaIdentityConstraint.cs
- OperationResponse.cs
- AssociatedControlConverter.cs
- DbConvert.cs
- FixedSOMContainer.cs
- Perspective.cs
- ClientBuildManager.cs
- CompositeDataBoundControl.cs
- SmtpReplyReader.cs
- DataControlField.cs
- ModuleElement.cs
- ArraySubsetEnumerator.cs
- DesignSurfaceEvent.cs
- PenContexts.cs
- EventHandlersStore.cs
- UrlPath.cs
- nulltextcontainer.cs
- ProjectionAnalyzer.cs
- SqlUserDefinedAggregateAttribute.cs
- OracleInternalConnection.cs
- MenuItem.cs
- OneWayElement.cs
- MouseEventArgs.cs
- SqlDataSourceSelectingEventArgs.cs
- EndOfStreamException.cs
- AssemblyAttributes.cs
- MaterializeFromAtom.cs
- LambdaCompiler.Lambda.cs
- FixUp.cs
- WinInet.cs
- IndexOutOfRangeException.cs
- WorkflowItemsPresenter.cs
- UntypedNullExpression.cs
- XmlArrayAttribute.cs
- ExpressionBuilder.cs