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
- ToolStripDesigner.cs
- InitializationEventAttribute.cs
- DynamicMethod.cs
- Soap.cs
- XmlCharCheckingWriter.cs
- KeyValueSerializer.cs
- NonNullItemCollection.cs
- HttpGetProtocolReflector.cs
- ViewBase.cs
- StringDictionary.cs
- BitHelper.cs
- UserPreferenceChangedEventArgs.cs
- PropertyOverridesDialog.cs
- ValidationHelpers.cs
- ListViewEditEventArgs.cs
- DefaultTextStoreTextComposition.cs
- CodeBlockBuilder.cs
- UnsafeNativeMethods.cs
- XmlNode.cs
- RegionData.cs
- StickyNote.cs
- FillRuleValidation.cs
- StatusBar.cs
- ProfessionalColors.cs
- MethodExpr.cs
- ConfigXmlSignificantWhitespace.cs
- DropShadowBitmapEffect.cs
- QueryOutputWriter.cs
- ObjectConverter.cs
- KnownBoxes.cs
- DoubleCollection.cs
- _AutoWebProxyScriptEngine.cs
- DbQueryCommandTree.cs
- PageThemeCodeDomTreeGenerator.cs
- DataServiceQueryOfT.cs
- BidirectionalDictionary.cs
- Content.cs
- PropertyPath.cs
- Rijndael.cs
- TypeUtil.cs
- Configuration.cs
- StatusBarItemAutomationPeer.cs
- DataContractSerializerOperationBehavior.cs
- SQLString.cs
- DetailsViewRow.cs
- TagPrefixCollection.cs
- Type.cs
- SystemNetHelpers.cs
- KeyPullup.cs
- TypeExtensionSerializer.cs
- CalendarItem.cs
- PersistencePipeline.cs
- HandledMouseEvent.cs
- CachedTypeface.cs
- WmlFormAdapter.cs
- WebPermission.cs
- ComponentManagerBroker.cs
- ValidationSummary.cs
- JavaScriptObjectDeserializer.cs
- DataReceivedEventArgs.cs
- CodeGenerationManager.cs
- RawKeyboardInputReport.cs
- CodeDomComponentSerializationService.cs
- EndpointDispatcherTable.cs
- Setter.cs
- RuntimeConfigLKG.cs
- BuildResult.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TextPenaltyModule.cs
- XmlDictionaryReader.cs
- SkewTransform.cs
- TemplateBindingExtensionConverter.cs
- SiteMapNodeCollection.cs
- EventManager.cs
- ExtensionSimplifierMarkupObject.cs
- MultiPropertyDescriptorGridEntry.cs
- PointHitTestResult.cs
- UnorderedHashRepartitionStream.cs
- CultureInfo.cs
- BaseAppDomainProtocolHandler.cs
- ParserHooks.cs
- RectAnimation.cs
- ListItemConverter.cs
- DbConvert.cs
- DynamicDocumentPaginator.cs
- ToolStripRenderEventArgs.cs
- SqlRemoveConstantOrderBy.cs
- SchemaNotation.cs
- QualifiedCellIdBoolean.cs
- SystemNetworkInterface.cs
- PageVisual.cs
- ApplicationSecurityInfo.cs
- EmptyEnumerator.cs
- SamlAttributeStatement.cs
- SecurityContextCookieSerializer.cs
- nulltextcontainer.cs
- ProviderSettings.cs
- TitleStyle.cs
- SiteMapDataSourceDesigner.cs
- PropertyTabChangedEvent.cs