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
- UnsignedPublishLicense.cs
- dtdvalidator.cs
- MaterialGroup.cs
- XmlHierarchicalDataSourceView.cs
- ListViewItem.cs
- XMLSchema.cs
- DesignRelation.cs
- TimeManager.cs
- WebPartZoneBase.cs
- GridViewColumn.cs
- DeviceContext.cs
- ErrorWebPart.cs
- XamlSerializationHelper.cs
- PerfCounterSection.cs
- InsufficientMemoryException.cs
- RequestQueryProcessor.cs
- JsonByteArrayDataContract.cs
- DocumentSchemaValidator.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- GeneralTransform2DTo3D.cs
- HttpBufferlessInputStream.cs
- CopyEncoder.cs
- AssociatedControlConverter.cs
- SQLInt32Storage.cs
- DataControlFieldCollection.cs
- AppDomainFactory.cs
- TimeZone.cs
- RelationshipFixer.cs
- WorkflowRuntimeService.cs
- VisualStyleInformation.cs
- StylusSystemGestureEventArgs.cs
- PngBitmapEncoder.cs
- VerifyHashRequest.cs
- ProviderBase.cs
- PrintPreviewGraphics.cs
- Container.cs
- QilExpression.cs
- BinaryFormatterSinks.cs
- DataSourceCache.cs
- AnnotationResource.cs
- WindowsFont.cs
- DataControlFieldCell.cs
- EntityExpressionVisitor.cs
- listitem.cs
- SecurityUtils.cs
- UTF8Encoding.cs
- BigInt.cs
- _CommandStream.cs
- WebServicesSection.cs
- Expander.cs
- StrongNameSignatureInformation.cs
- ReadOnlyHierarchicalDataSource.cs
- ChannelServices.cs
- HwndHostAutomationPeer.cs
- Context.cs
- DesignerVerb.cs
- InputLanguageCollection.cs
- ExportOptions.cs
- DBConcurrencyException.cs
- RepeatBehaviorConverter.cs
- AutomationEventArgs.cs
- KnowledgeBase.cs
- TransactionTable.cs
- JulianCalendar.cs
- Literal.cs
- RequestQueryParser.cs
- ADMembershipUser.cs
- RIPEMD160.cs
- StopStoryboard.cs
- RootNamespaceAttribute.cs
- SerializerDescriptor.cs
- DateTimeOffset.cs
- TypeSource.cs
- Opcode.cs
- InvalidEnumArgumentException.cs
- EmbeddedMailObjectsCollection.cs
- MessageRpc.cs
- SqlBulkCopyColumnMappingCollection.cs
- DocumentPageViewAutomationPeer.cs
- propertytag.cs
- HeaderCollection.cs
- SafeBuffer.cs
- DispatchChannelSink.cs
- PenLineJoinValidation.cs
- Rotation3DAnimationUsingKeyFrames.cs
- DrawingAttributeSerializer.cs
- _emptywebproxy.cs
- HyperLinkStyle.cs
- Floater.cs
- TouchDevice.cs
- XmlNotation.cs
- ApplicationServicesHostFactory.cs
- HitTestFilterBehavior.cs
- OptimizedTemplateContentHelper.cs
- PhonemeEventArgs.cs
- OperatingSystem.cs
- ClusterRegistryConfigurationProvider.cs
- DbProviderConfigurationHandler.cs
- ContainerUIElement3D.cs
- ComponentRenameEvent.cs