Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangingEventArgs.cs / 1305376 / EntityDataSourceChangingEventArgs.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 EntityDataSourceChangingEventArgs : System.ComponentModel.CancelEventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly object _entity = null; internal EntityDataSourceChangingEventArgs(ObjectContext context, object entity) { _context = context; _entity = entity; } internal EntityDataSourceChangingEventArgs(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 EntityDataSourceChangingEventArgs : System.ComponentModel.CancelEventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly object _entity = null; internal EntityDataSourceChangingEventArgs(ObjectContext context, object entity) { _context = context; _entity = entity; } internal EntityDataSourceChangingEventArgs(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
- StorageAssociationTypeMapping.cs
- Transform.cs
- HtmlLink.cs
- ApplicationManager.cs
- Package.cs
- VisualStyleInformation.cs
- XmlSchemaSimpleTypeRestriction.cs
- COM2ColorConverter.cs
- Internal.cs
- DesignerSerializationOptionsAttribute.cs
- LingerOption.cs
- ListViewAutomationPeer.cs
- SimpleType.cs
- Int16Storage.cs
- TransformedBitmap.cs
- ZoneIdentityPermission.cs
- SendActivityValidator.cs
- BinaryParser.cs
- EventsTab.cs
- CodeActivityContext.cs
- DataSourceIDConverter.cs
- ServiceEndpointElementCollection.cs
- XPSSignatureDefinition.cs
- CategoryValueConverter.cs
- ProfileInfo.cs
- DataGridViewCellLinkedList.cs
- XmlValueConverter.cs
- ResourcePermissionBaseEntry.cs
- BuilderPropertyEntry.cs
- CqlLexer.cs
- DoWhileDesigner.xaml.cs
- TransformerInfo.cs
- FileNotFoundException.cs
- XmlSchemaProviderAttribute.cs
- Italic.cs
- FileDialog_Vista_Interop.cs
- PanelStyle.cs
- TypeSource.cs
- URLMembershipCondition.cs
- SqlDataSourceSelectingEventArgs.cs
- WindowsStreamSecurityBindingElement.cs
- SqlUDTStorage.cs
- NodeInfo.cs
- DocumentOrderQuery.cs
- RowCache.cs
- HeaderPanel.cs
- BoundField.cs
- AVElementHelper.cs
- BindingNavigatorDesigner.cs
- XmlSchemaAnyAttribute.cs
- ImageBrush.cs
- SrgsGrammar.cs
- UrlAuthorizationModule.cs
- DataGridViewColumnCollection.cs
- MemberDomainMap.cs
- TrustLevel.cs
- HttpRuntime.cs
- Brush.cs
- EntityContainerRelationshipSetEnd.cs
- ObjectDataSourceEventArgs.cs
- PermissionRequestEvidence.cs
- WindowsFormsSynchronizationContext.cs
- ActivationArguments.cs
- QilDataSource.cs
- ListViewGroup.cs
- Literal.cs
- ToolBarTray.cs
- GcHandle.cs
- XmlnsCompatibleWithAttribute.cs
- WpfXamlType.cs
- ValuePattern.cs
- AtomParser.cs
- IApplicationTrustManager.cs
- DataSourceExpression.cs
- DragCompletedEventArgs.cs
- Funcletizer.cs
- CreatingCookieEventArgs.cs
- DateTimeFormat.cs
- ParameterToken.cs
- BitArray.cs
- ProviderMetadataCachedInformation.cs
- ListParaClient.cs
- NonVisualControlAttribute.cs
- XmlResolver.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- CompoundFileReference.cs
- TagPrefixInfo.cs
- DbConnectionPoolCounters.cs
- CharEntityEncoderFallback.cs
- EntitySqlException.cs
- TypeBuilder.cs
- QueueProcessor.cs
- MessageEventSubscriptionService.cs
- XpsStructure.cs
- WorkflowApplicationCompletedException.cs
- XhtmlBasicFormAdapter.cs
- AppDomain.cs
- ClaimTypeRequirement.cs
- FileRecordSequenceCompletedAsyncResult.cs
- Normalization.cs