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
- SectionInput.cs
- FormatConvertedBitmap.cs
- DocumentViewerAutomationPeer.cs
- SchemaImporter.cs
- PropertyIDSet.cs
- VoiceChangeEventArgs.cs
- DataGridViewAutoSizeModeEventArgs.cs
- KnownColorTable.cs
- TypeUsageBuilder.cs
- ItemContainerGenerator.cs
- PersonalizationProvider.cs
- DbConnectionClosed.cs
- LinkLabel.cs
- GroupBoxRenderer.cs
- RenderDataDrawingContext.cs
- TableSectionStyle.cs
- Triangle.cs
- CollectionViewProxy.cs
- FaultContractInfo.cs
- bindurihelper.cs
- StringSource.cs
- EntityDataSourceColumn.cs
- SharedPerformanceCounter.cs
- RoleManagerEventArgs.cs
- ObjectTokenCategory.cs
- QilSortKey.cs
- GAC.cs
- SymLanguageType.cs
- XsdBuildProvider.cs
- CodeVariableReferenceExpression.cs
- CollectionChangeEventArgs.cs
- EditingContext.cs
- FileDetails.cs
- ScriptResourceAttribute.cs
- storepermissionattribute.cs
- JsonFormatWriterGenerator.cs
- OdbcReferenceCollection.cs
- ParameterModifier.cs
- TreeNode.cs
- ClientScriptManager.cs
- ContextMenu.cs
- TextEvent.cs
- HttpRequestTraceRecord.cs
- MessageEncoder.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DurableEnlistmentState.cs
- EventLogEntryCollection.cs
- SignedPkcs7.cs
- SqlUserDefinedTypeAttribute.cs
- SqlBulkCopyColumnMapping.cs
- FormsIdentity.cs
- AngleUtil.cs
- MenuAutomationPeer.cs
- SystemIPGlobalStatistics.cs
- WebPartMenuStyle.cs
- GridViewRow.cs
- FrameworkElementAutomationPeer.cs
- UserUseLicenseDictionaryLoader.cs
- SafeSystemMetrics.cs
- DefaultTextStore.cs
- AbstractSvcMapFileLoader.cs
- TextRangeSerialization.cs
- ClientScriptItem.cs
- TransactionException.cs
- HandledMouseEvent.cs
- UpdateCommandGenerator.cs
- HwndSourceParameters.cs
- ConnectionProviderAttribute.cs
- UnsafeNativeMethods.cs
- XmlSchemaComplexContent.cs
- WizardPanelChangingEventArgs.cs
- TextSelectionHighlightLayer.cs
- SecurityHeaderElementInferenceEngine.cs
- SQLMoneyStorage.cs
- RichTextBoxAutomationPeer.cs
- XmlSignatureManifest.cs
- NullableDoubleMinMaxAggregationOperator.cs
- EntityDataSourceConfigureObjectContext.cs
- StylusDownEventArgs.cs
- BoolExpression.cs
- KnownTypesProvider.cs
- ConfigXmlDocument.cs
- ContainerSelectorBehavior.cs
- BookmarkManager.cs
- ControlPropertyNameConverter.cs
- BasicDesignerLoader.cs
- NameTable.cs
- MessageLogger.cs
- MappingMetadataHelper.cs
- XsltException.cs
- FloatUtil.cs
- SqlNodeAnnotation.cs
- ResourceDictionary.cs
- SqlDuplicator.cs
- Trace.cs
- DataGridItem.cs
- MenuStrip.cs
- SettingsAttributes.cs
- NativeMethods.cs
- AllowedAudienceUriElementCollection.cs