Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangedEventArgs.cs / 1 / 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.
//----------------------------------------------------------------------
//
// 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
- ConstrainedDataObject.cs
- PropertyPath.cs
- BaseCollection.cs
- SettingsProperty.cs
- IsolatedStorageFilePermission.cs
- CustomAttributeSerializer.cs
- ControlParameter.cs
- TCEAdapterGenerator.cs
- JavaScriptSerializer.cs
- UnsignedPublishLicense.cs
- DomainLiteralReader.cs
- ClientScriptItemCollection.cs
- StateChangeEvent.cs
- PrinterResolution.cs
- AnnotationResourceCollection.cs
- DataServiceExpressionVisitor.cs
- CSharpCodeProvider.cs
- JsonReader.cs
- HttpStaticObjectsCollectionWrapper.cs
- WindowsTab.cs
- ResponseStream.cs
- OracleBinary.cs
- XPathParser.cs
- GridToolTip.cs
- HotSpot.cs
- ProcessModelSection.cs
- DurableInstanceProvider.cs
- BStrWrapper.cs
- dataobject.cs
- StringCollection.cs
- ImageFormat.cs
- DataServices.cs
- ObjectToIdCache.cs
- Int32RectValueSerializer.cs
- EmptyReadOnlyDictionaryInternal.cs
- MetadataItemEmitter.cs
- CategoryNameCollection.cs
- ProfilePropertyMetadata.cs
- HostingEnvironment.cs
- XmlSerializableWriter.cs
- VBCodeProvider.cs
- QueryResult.cs
- DataGridViewRowsRemovedEventArgs.cs
- HttpHeaderCollection.cs
- TaskDesigner.cs
- FlatButtonAppearance.cs
- WebResourceAttribute.cs
- XmlException.cs
- AppDomainAttributes.cs
- ReadWriteObjectLock.cs
- BufferedGraphics.cs
- ObjectDataSourceDisposingEventArgs.cs
- TextReader.cs
- AmbiguousMatchException.cs
- XmlQueryContext.cs
- HasCopySemanticsAttribute.cs
- DPCustomTypeDescriptor.cs
- DetailsViewModeEventArgs.cs
- ToolStripPanelRow.cs
- SmiContext.cs
- Queue.cs
- EntityDataSourceConfigureObjectContext.cs
- ViewService.cs
- URLString.cs
- RIPEMD160Managed.cs
- DocumentViewer.cs
- CorrelationManager.cs
- StringHelper.cs
- TextEvent.cs
- IODescriptionAttribute.cs
- WorkflowControlClient.cs
- SelectionItemPatternIdentifiers.cs
- BrowserCapabilitiesCodeGenerator.cs
- AtomContentProperty.cs
- WorkflowCompensationBehavior.cs
- ColumnPropertiesGroup.cs
- MembershipValidatePasswordEventArgs.cs
- Label.cs
- XamlWrapperReaders.cs
- TimeoutException.cs
- ProgressiveCrcCalculatingStream.cs
- DependsOnAttribute.cs
- StreamGeometry.cs
- DropSource.cs
- BmpBitmapEncoder.cs
- httpstaticobjectscollection.cs
- AngleUtil.cs
- MarkupObject.cs
- ElementAction.cs
- TreeNodeBindingCollection.cs
- LassoSelectionBehavior.cs
- FocusTracker.cs
- DataStreams.cs
- Operand.cs
- RotateTransform3D.cs
- PageCache.cs
- TakeQueryOptionExpression.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- Stroke2.cs
- HashStream.cs