Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Misc.cs
- ConfigurationManager.cs
- SimpleBitVector32.cs
- sitestring.cs
- HierarchicalDataSourceControl.cs
- SecurityTokenResolver.cs
- EventToken.cs
- SqlSupersetValidator.cs
- HttpHandlerActionCollection.cs
- Rule.cs
- AuthenticationModuleElement.cs
- TreeNodeCollectionEditor.cs
- SchemaImporter.cs
- NullRuntimeConfig.cs
- ReferencedCategoriesDocument.cs
- FindProgressChangedEventArgs.cs
- ButtonFieldBase.cs
- DataGridViewSortCompareEventArgs.cs
- DataSvcMapFileSerializer.cs
- ExecutedRoutedEventArgs.cs
- UpdateRecord.cs
- InfoCardTraceRecord.cs
- OleCmdHelper.cs
- PlaceHolder.cs
- TextProviderWrapper.cs
- NumericUpDownAcceleration.cs
- dataobject.cs
- FormatterConverter.cs
- SocketElement.cs
- MailMessage.cs
- WebRequestModuleElement.cs
- TextTreeTextElementNode.cs
- GridViewSelectEventArgs.cs
- GridItemPatternIdentifiers.cs
- TableLayoutStyle.cs
- AddDataControlFieldDialog.cs
- SqlTrackingQuery.cs
- ZoneIdentityPermission.cs
- CheckableControlBaseAdapter.cs
- FormViewRow.cs
- SiteMapNodeItemEventArgs.cs
- NumericUpDownAcceleration.cs
- ScriptRegistrationManager.cs
- RelatedView.cs
- Pens.cs
- GridViewRow.cs
- EnvironmentPermission.cs
- SafeArrayTypeMismatchException.cs
- IndicFontClient.cs
- XmlLanguage.cs
- TextBlock.cs
- ComponentManagerBroker.cs
- BamlRecords.cs
- CodeConditionStatement.cs
- CustomLineCap.cs
- RootBuilder.cs
- SafeRightsManagementQueryHandle.cs
- DispatcherFrame.cs
- ExpressionBuilder.cs
- VisualCollection.cs
- SecureUICommand.cs
- StyleCollectionEditor.cs
- GPPOINTF.cs
- ReadContentAsBinaryHelper.cs
- IteratorDescriptor.cs
- ExtensionSurface.cs
- _HeaderInfoTable.cs
- _SSPIWrapper.cs
- FramingEncoders.cs
- ExpressionValueEditor.cs
- XmlMemberMapping.cs
- OdbcEnvironmentHandle.cs
- AliasGenerator.cs
- X509InitiatorCertificateServiceElement.cs
- HtmlInputHidden.cs
- FixedBufferAttribute.cs
- CallbackValidatorAttribute.cs
- TextMetrics.cs
- MultiDataTrigger.cs
- StylusEventArgs.cs
- Typeface.cs
- CompoundFileStreamReference.cs
- SettingsAttributes.cs
- CapabilitiesRule.cs
- ToolStripPanelCell.cs
- PersonalizableTypeEntry.cs
- FontEmbeddingManager.cs
- CellRelation.cs
- RadioButtonRenderer.cs
- StylesEditorDialog.cs
- ScriptingProfileServiceSection.cs
- PrintPageEvent.cs
- CrossContextChannel.cs
- FlowDocumentView.cs
- LinqDataSourceHelper.cs
- SystemUnicastIPAddressInformation.cs
- Keywords.cs
- SocketElement.cs
- CodeTypeParameter.cs
- ProtocolElementCollection.cs