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
- XPathNodeIterator.cs
- TraceSection.cs
- SegmentInfo.cs
- FixedPageAutomationPeer.cs
- ValueTypeFixupInfo.cs
- CollectionViewGroupRoot.cs
- MailMessage.cs
- RoamingStoreFileUtility.cs
- UrlMapping.cs
- _RegBlobWebProxyDataBuilder.cs
- CodeLabeledStatement.cs
- SoapFault.cs
- Span.cs
- DataContractSet.cs
- ConcurrentStack.cs
- VisualStyleTypesAndProperties.cs
- AutoGeneratedFieldProperties.cs
- SqlBuilder.cs
- DbDataAdapter.cs
- ListChangedEventArgs.cs
- SubclassTypeValidatorAttribute.cs
- AssemblyFilter.cs
- SystemWebExtensionsSectionGroup.cs
- OdbcUtils.cs
- QueryReaderSettings.cs
- StringInfo.cs
- ListBox.cs
- HttpDigestClientElement.cs
- KeyToListMap.cs
- InvokePattern.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ConditionValidator.cs
- ListDictionary.cs
- File.cs
- odbcmetadatafactory.cs
- TrackingStringDictionary.cs
- precedingsibling.cs
- XhtmlBasicObjectListAdapter.cs
- FormViewModeEventArgs.cs
- XsltContext.cs
- JapaneseLunisolarCalendar.cs
- BoolExpression.cs
- RequestDescription.cs
- ResumeStoryboard.cs
- DataControlImageButton.cs
- ObjectReaderCompiler.cs
- Button.cs
- Table.cs
- UshortList2.cs
- AutomationPatternInfo.cs
- SoapAttributes.cs
- HttpRuntimeSection.cs
- GridViewColumnHeaderAutomationPeer.cs
- HtmlForm.cs
- SafeBitVector32.cs
- oledbmetadatacolumnnames.cs
- DependencyPropertyChangedEventArgs.cs
- GZipDecoder.cs
- TraceInternal.cs
- CustomTokenProvider.cs
- ServicePoint.cs
- ScalarConstant.cs
- XmlRawWriterWrapper.cs
- Point3DCollectionValueSerializer.cs
- VScrollProperties.cs
- StylusPointCollection.cs
- ServerIdentity.cs
- DecoderFallbackWithFailureFlag.cs
- Roles.cs
- ListViewPagedDataSource.cs
- InternalResources.cs
- ResourceExpression.cs
- Decimal.cs
- CompiledQuery.cs
- DataGridItemCollection.cs
- FileDetails.cs
- XmlProcessingInstruction.cs
- SimpleTableProvider.cs
- ToolZone.cs
- EntitySqlException.cs
- WebBrowserSiteBase.cs
- UniqueEventHelper.cs
- TraceData.cs
- TextTreeRootNode.cs
- FixedSOMPageConstructor.cs
- MetadataArtifactLoaderFile.cs
- SafeFindHandle.cs
- BaseDataBoundControl.cs
- VectorAnimationBase.cs
- Propagator.Evaluator.cs
- Selector.cs
- DataColumnMapping.cs
- DeadCharTextComposition.cs
- SqlProfileProvider.cs
- CommandField.cs
- IndexedEnumerable.cs
- BmpBitmapEncoder.cs
- TextEditorDragDrop.cs
- COM2EnumConverter.cs
- ConstrainedDataObject.cs