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
- SignedPkcs7.cs
- ForceCopyBuildProvider.cs
- Misc.cs
- PolicyLevel.cs
- StrongNameKeyPair.cs
- ProfileGroupSettings.cs
- Condition.cs
- RadioButtonRenderer.cs
- InstanceLockLostException.cs
- ModelTreeEnumerator.cs
- OdbcPermission.cs
- BitmapEncoder.cs
- CodeDOMProvider.cs
- TextRangeAdaptor.cs
- EastAsianLunisolarCalendar.cs
- AssociationSetEnd.cs
- SettingsAttributeDictionary.cs
- LinqDataSourceDeleteEventArgs.cs
- XamlBuildTaskServices.cs
- ToolboxCategoryItems.cs
- MappingModelBuildProvider.cs
- AnimationTimeline.cs
- AppSecurityManager.cs
- MethodBody.cs
- CollectionType.cs
- InnerItemCollectionView.cs
- ErrorHandler.cs
- SystemNetworkInterface.cs
- ToolStripContentPanel.cs
- BamlRecordHelper.cs
- XamlParser.cs
- NumberAction.cs
- Rotation3D.cs
- NullableDoubleAverageAggregationOperator.cs
- ListBindingConverter.cs
- WebControlToolBoxItem.cs
- RelationshipEnd.cs
- SoapObjectInfo.cs
- ToolboxItemSnapLineBehavior.cs
- EnvironmentPermission.cs
- UITypeEditor.cs
- AddInPipelineAttributes.cs
- TextTreeObjectNode.cs
- UnSafeCharBuffer.cs
- MappingItemCollection.cs
- ExpressionEditorAttribute.cs
- TextRange.cs
- Literal.cs
- RelationshipEnd.cs
- ObjectManager.cs
- ADConnectionHelper.cs
- BlurEffect.cs
- SelectorItemAutomationPeer.cs
- QueryOutputWriter.cs
- IEnumerable.cs
- DisableDpiAwarenessAttribute.cs
- ListViewItemEventArgs.cs
- FormatSelectingMessageInspector.cs
- OperationCanceledException.cs
- httpserverutility.cs
- SymbolTable.cs
- XmlName.cs
- WebPartZoneBase.cs
- _OverlappedAsyncResult.cs
- XmlWrappingWriter.cs
- SingleSelectRootGridEntry.cs
- embossbitmapeffect.cs
- XmlComment.cs
- FileNotFoundException.cs
- RawStylusSystemGestureInputReport.cs
- ListItemsCollectionEditor.cs
- MessageHeaderInfoTraceRecord.cs
- DrawingDrawingContext.cs
- ToolStripTextBox.cs
- SettingsPropertyWrongTypeException.cs
- CorrelationQuery.cs
- StyleModeStack.cs
- CounterCreationData.cs
- PropertyToken.cs
- PrivateFontCollection.cs
- ClientBuildManagerCallback.cs
- IndependentAnimationStorage.cs
- NonParentingControl.cs
- LayoutUtils.cs
- StrongNamePublicKeyBlob.cs
- X509CertificateTrustedIssuerElement.cs
- StoryFragments.cs
- DependencyObjectValidator.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- TextCharacters.cs
- SvcMapFileSerializer.cs
- UnsafePeerToPeerMethods.cs
- ITreeGenerator.cs
- SQLSingle.cs
- ClonableStack.cs
- SelectQueryOperator.cs
- Bitmap.cs
- __Filters.cs
- AbstractExpressions.cs
- Effect.cs