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
- XslCompiledTransform.cs
- AtomPub10CategoriesDocumentFormatter.cs
- SqlFileStream.cs
- MSG.cs
- NonVisualControlAttribute.cs
- ThreadPool.cs
- HttpApplicationStateBase.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ReadOnlyCollectionBase.cs
- EncoderParameters.cs
- TextBoxBase.cs
- AutomationIdentifier.cs
- CodeTypeParameterCollection.cs
- TdsParameterSetter.cs
- OleDbPropertySetGuid.cs
- Models.cs
- XamlReaderHelper.cs
- XmlSchemas.cs
- TimeSpan.cs
- StylusPointPropertyInfo.cs
- ExpressionDumper.cs
- BasicViewGenerator.cs
- EdmProperty.cs
- AuthorizationSection.cs
- OutputCacheSection.cs
- UidPropertyAttribute.cs
- ManualResetEvent.cs
- TreeViewItemAutomationPeer.cs
- VideoDrawing.cs
- ConfigurationElement.cs
- FormViewCommandEventArgs.cs
- CodeAccessSecurityEngine.cs
- ToolStripDropDownClosingEventArgs.cs
- OdbcFactory.cs
- Knowncolors.cs
- MD5.cs
- Preprocessor.cs
- EmbeddedMailObject.cs
- NamespaceList.cs
- HttpModulesSection.cs
- SchemaNames.cs
- ConfigXmlComment.cs
- NextPreviousPagerField.cs
- SharedPerformanceCounter.cs
- ExeConfigurationFileMap.cs
- MeasurementDCInfo.cs
- SqlUDTStorage.cs
- XmlQueryStaticData.cs
- EdmFunction.cs
- DBSchemaTable.cs
- BrowserCapabilitiesCodeGenerator.cs
- WhileDesigner.cs
- SaveCardRequest.cs
- TreeViewItemAutomationPeer.cs
- GridViewSortEventArgs.cs
- CacheMemory.cs
- FlowDocumentReaderAutomationPeer.cs
- CompressedStack.cs
- ActiveXHost.cs
- FixedTextView.cs
- DSASignatureDeformatter.cs
- HtmlHistory.cs
- loginstatus.cs
- ToolStripPanelCell.cs
- LocalizableAttribute.cs
- ScrollContentPresenter.cs
- EnvelopedPkcs7.cs
- JpegBitmapDecoder.cs
- PrimarySelectionGlyph.cs
- GenericsInstances.cs
- Menu.cs
- WindowsSpinner.cs
- UriTemplateQueryValue.cs
- X509Chain.cs
- userdatakeys.cs
- LambdaCompiler.Lambda.cs
- RootProfilePropertySettingsCollection.cs
- DefaultValueConverter.cs
- InlineCollection.cs
- BuildProviderCollection.cs
- XmlSchemaInferenceException.cs
- StrongNameIdentityPermission.cs
- BufferedOutputStream.cs
- ImageFormat.cs
- WebPartExportVerb.cs
- EventLogPermissionEntry.cs
- AppDomain.cs
- TreeNode.cs
- DataSourceXmlSerializer.cs
- IRCollection.cs
- x509utils.cs
- newitemfactory.cs
- PartialCachingControl.cs
- XmlSchemaNotation.cs
- RichTextBoxConstants.cs
- InfoCardSchemas.cs
- AutomationElementIdentifiers.cs
- SqlRowUpdatingEvent.cs
- Directory.cs
- datacache.cs