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
- DataObjectMethodAttribute.cs
- SqlDataSourceCommandEventArgs.cs
- View.cs
- TransportContext.cs
- FormViewDeletedEventArgs.cs
- ApplicationServiceHelper.cs
- DesignerVerb.cs
- XmlParserContext.cs
- entityreference_tresulttype.cs
- StreamInfo.cs
- StoreContentChangedEventArgs.cs
- CustomErrorCollection.cs
- OleDbSchemaGuid.cs
- InstancePersistenceCommandException.cs
- MenuRenderer.cs
- ExpressionNode.cs
- HandleCollector.cs
- CompilerLocalReference.cs
- HierarchicalDataTemplate.cs
- HandlerWithFactory.cs
- SafeFileMapViewHandle.cs
- IntegrationExceptionEventArgs.cs
- CapabilitiesAssignment.cs
- Vector3DCollectionValueSerializer.cs
- RealizedColumnsBlock.cs
- TerminatorSinks.cs
- BitmapDownload.cs
- LinkedResource.cs
- TextAnchor.cs
- EntityTransaction.cs
- DataGrid.cs
- CompilerScopeManager.cs
- _SpnDictionary.cs
- TemplateBindingExtensionConverter.cs
- ResponseBodyWriter.cs
- IgnoreFlushAndCloseStream.cs
- IApplicationTrustManager.cs
- RayHitTestParameters.cs
- AncestorChangedEventArgs.cs
- DPCustomTypeDescriptor.cs
- ReadOnlyCollectionBase.cs
- SessionEndedEventArgs.cs
- DynamicQueryableWrapper.cs
- DetailsViewDesigner.cs
- TreeNode.cs
- EventHandlers.cs
- HttpCookiesSection.cs
- BlurBitmapEffect.cs
- cookieexception.cs
- XmlSchemaAll.cs
- FileIOPermission.cs
- ListViewGroupItemCollection.cs
- DbDeleteCommandTree.cs
- AutoCompleteStringCollection.cs
- SqlDesignerDataSourceView.cs
- InstanceDescriptor.cs
- AuthenticationException.cs
- DependencyObject.cs
- PageContent.cs
- XmlSchemaDatatype.cs
- ItemList.cs
- Int64AnimationUsingKeyFrames.cs
- DesignerOptionService.cs
- Baml2006KeyRecord.cs
- CriticalFinalizerObject.cs
- dsa.cs
- StatusStrip.cs
- ObjectSerializerFactory.cs
- NonSerializedAttribute.cs
- FormViewModeEventArgs.cs
- SynchronousChannelMergeEnumerator.cs
- SerialReceived.cs
- MetadataArtifactLoader.cs
- GenericPrincipal.cs
- __ConsoleStream.cs
- figurelength.cs
- Rotation3DAnimationBase.cs
- JavaScriptObjectDeserializer.cs
- XmlNodeList.cs
- HttpWebRequest.cs
- ZipIOCentralDirectoryBlock.cs
- TextContainer.cs
- SpeakProgressEventArgs.cs
- securitycriticaldataClass.cs
- CacheDependency.cs
- EdmSchemaError.cs
- WebColorConverter.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DataComponentMethodGenerator.cs
- DbDataReader.cs
- ProfilePropertySettings.cs
- SecureUICommand.cs
- XmlSchemaAnnotated.cs
- XamlInt32CollectionSerializer.cs
- TextServicesLoader.cs
- XmlSchemaSimpleContent.cs
- WebPartConnectionsEventArgs.cs
- _LocalDataStoreMgr.cs
- prefixendpointaddressmessagefiltertable.cs
- JapaneseCalendar.cs