Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceChangedEventArgs.cs / 1 / EntityDataSourceChangedEventArgs.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 EntityDataSourceChangedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly object _entity = null; internal EntityDataSourceChangedEventArgs(ObjectContext context, object entity) { _context = context; _entity = entity; } internal EntityDataSourceChangedEventArgs(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 EntityDataSourceChangedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly object _entity = null; internal EntityDataSourceChangedEventArgs(ObjectContext context, object entity) { _context = context; _entity = entity; } internal EntityDataSourceChangedEventArgs(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
- Int16.cs
- SessionStateModule.cs
- FileEnumerator.cs
- TypeSystemProvider.cs
- LineGeometry.cs
- SplineQuaternionKeyFrame.cs
- GroupBox.cs
- MaterializeFromAtom.cs
- AttachedAnnotationChangedEventArgs.cs
- DiscoveryServerProtocol.cs
- StyleBamlTreeBuilder.cs
- ServiceContractAttribute.cs
- MinMaxParagraphWidth.cs
- ComPersistableTypeElement.cs
- AuthenticationModuleElementCollection.cs
- ConfigurationCollectionAttribute.cs
- SrgsNameValueTag.cs
- XmlSchemaCollection.cs
- ConfigurationSectionHelper.cs
- TypeUnloadedException.cs
- CorrelationInitializer.cs
- MailMessageEventArgs.cs
- FactoryMaker.cs
- RC2CryptoServiceProvider.cs
- IsolatedStorageFileStream.cs
- TreeNodeEventArgs.cs
- x509store.cs
- HiddenField.cs
- HttpException.cs
- Stackframe.cs
- SafeFileMappingHandle.cs
- DirectionalLight.cs
- SweepDirectionValidation.cs
- OleDbEnumerator.cs
- DataConnectionHelper.cs
- DrawingDrawingContext.cs
- EventLogException.cs
- TypeDescriptor.cs
- DataTemplateKey.cs
- EntityCommandDefinition.cs
- MimeTypeAttribute.cs
- EntityCommand.cs
- XmlSchemaDocumentation.cs
- DiscoveryMessageSequenceGenerator.cs
- FormClosingEvent.cs
- AxWrapperGen.cs
- ConnectionsZone.cs
- XPathBinder.cs
- CompilationLock.cs
- dbdatarecord.cs
- QuaternionIndependentAnimationStorage.cs
- SecurityException.cs
- BuilderPropertyEntry.cs
- OutputCacheSection.cs
- CodeExpressionCollection.cs
- FieldDescriptor.cs
- OleDbTransaction.cs
- CommonProperties.cs
- DWriteFactory.cs
- KeyTimeConverter.cs
- InvariantComparer.cs
- WindowsRichEditRange.cs
- SizeConverter.cs
- SqlDataSourceSelectingEventArgs.cs
- PersistenceTypeAttribute.cs
- FixedSOMTableCell.cs
- IisTraceListener.cs
- LongValidatorAttribute.cs
- EdmRelationshipRoleAttribute.cs
- Image.cs
- ParameterCollection.cs
- ValidationError.cs
- ImageKeyConverter.cs
- HtmlInputFile.cs
- UriExt.cs
- AdPostCacheSubstitution.cs
- BasicHttpBindingCollectionElement.cs
- DSACryptoServiceProvider.cs
- Memoizer.cs
- Help.cs
- Transform3DGroup.cs
- MaskedTextBox.cs
- EventToken.cs
- InputScopeAttribute.cs
- CryptoKeySecurity.cs
- Border.cs
- CommandBinding.cs
- Input.cs
- XmlBaseWriter.cs
- CompositeScriptReference.cs
- StrongNamePublicKeyBlob.cs
- StreamAsIStream.cs
- PathSegmentCollection.cs
- EventSetter.cs
- TypefaceMap.cs
- MeasureItemEvent.cs
- CompiledIdentityConstraint.cs
- CrossAppDomainChannel.cs
- TableProviderWrapper.cs
- XmlKeywords.cs