Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangingEventArgs.cs / 1 / 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
- StrongName.cs
- SHA256Managed.cs
- BoolExpression.cs
- remotingproxy.cs
- ScaleTransform.cs
- InfoCardPolicy.cs
- ProfileManager.cs
- BooleanConverter.cs
- SoapMessage.cs
- BasicDesignerLoader.cs
- DBConnectionString.cs
- WebPartDisplayModeEventArgs.cs
- KeyValuePairs.cs
- AuthenticatingEventArgs.cs
- OrthographicCamera.cs
- CommandLineParser.cs
- QilName.cs
- IndexedEnumerable.cs
- XmlQueryCardinality.cs
- HttpValueCollection.cs
- PartialCachingAttribute.cs
- CompensationExtension.cs
- ScopedMessagePartSpecification.cs
- WebPartDescription.cs
- ValidatingReaderNodeData.cs
- BlurEffect.cs
- TextTabProperties.cs
- DynamicDataManager.cs
- ConfigPathUtility.cs
- PackUriHelper.cs
- Schema.cs
- Trace.cs
- ToggleButtonAutomationPeer.cs
- EmptyEnumerator.cs
- AutomationPropertyInfo.cs
- ParseHttpDate.cs
- EventItfInfo.cs
- ControlEvent.cs
- StaticFileHandler.cs
- CodeEventReferenceExpression.cs
- mediaeventargs.cs
- RelationshipManager.cs
- TextViewBase.cs
- SystemParameters.cs
- CustomValidator.cs
- AnnouncementDispatcherAsyncResult.cs
- DataTableNewRowEvent.cs
- MachineSettingsSection.cs
- ContextMenuService.cs
- FrameworkObject.cs
- SingleConverter.cs
- SystemKeyConverter.cs
- SettingsBase.cs
- NominalTypeEliminator.cs
- SymmetricSecurityProtocolFactory.cs
- RepeatButtonAutomationPeer.cs
- PropertyOrder.cs
- XmlSchemaException.cs
- WebPartConnectionsEventArgs.cs
- FunctionUpdateCommand.cs
- TrackingMemoryStream.cs
- RuntimeHandles.cs
- MemberAccessException.cs
- DataGridViewTextBoxColumn.cs
- CategoryNameCollection.cs
- DbConnectionFactory.cs
- Camera.cs
- FixedTextContainer.cs
- UniqueConstraint.cs
- DiagnosticTrace.cs
- TrustManagerMoreInformation.cs
- LockCookie.cs
- TextPointerBase.cs
- UInt32Storage.cs
- documentsequencetextpointer.cs
- IPHostEntry.cs
- MessagePropertyAttribute.cs
- Int32RectConverter.cs
- mediaeventargs.cs
- MethodAccessException.cs
- ByteStack.cs
- XmlSchemaExporter.cs
- Item.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ParseChildrenAsPropertiesAttribute.cs
- Serializer.cs
- CodeTypeMemberCollection.cs
- VBIdentifierTrimConverter.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- UserControlBuildProvider.cs
- MatrixAnimationUsingPath.cs
- NavigateEvent.cs
- Root.cs
- RequestCachePolicyConverter.cs
- SrgsOneOf.cs
- ModelProperty.cs
- WebPartAddingEventArgs.cs
- OracleBoolean.cs
- CacheChildrenQuery.cs
- SeverityFilter.cs