Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceSelectedEventArgs.cs / 1 / EntityDataSourceSelectedEventArgs.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; using System.Collections; namespace System.Web.UI.WebControls { public class EntityDataSourceSelectedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly IEnumerable _results = null; private readonly int _totalRowCount = 0; private readonly DataSourceSelectArguments _selectArguments; internal EntityDataSourceSelectedEventArgs(ObjectContext context, IEnumerable results, int totalRowCount, DataSourceSelectArguments selectArgs) { _context = context; _results = results; _totalRowCount = totalRowCount; _selectArguments = selectArgs; } internal EntityDataSourceSelectedEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public IEnumerable Results { get { return _results; } } public ObjectContext Context { get { return _context; } } public int TotalRowCount { get { return _totalRowCount; } } public DataSourceSelectArguments SelectArguments { get { return _selectArguments; } } } } // 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; using System.Collections; namespace System.Web.UI.WebControls { public class EntityDataSourceSelectedEventArgs : EventArgs { private readonly ObjectContext _context; private readonly Exception _exception = null; private bool _exceptionHandled = false; private readonly IEnumerable _results = null; private readonly int _totalRowCount = 0; private readonly DataSourceSelectArguments _selectArguments; internal EntityDataSourceSelectedEventArgs(ObjectContext context, IEnumerable results, int totalRowCount, DataSourceSelectArguments selectArgs) { _context = context; _results = results; _totalRowCount = totalRowCount; _selectArguments = selectArgs; } internal EntityDataSourceSelectedEventArgs(Exception exception) { _exception = exception; } public Exception Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } public IEnumerable Results { get { return _results; } } public ObjectContext Context { get { return _context; } } public int TotalRowCount { get { return _totalRowCount; } } public DataSourceSelectArguments SelectArguments { get { return _selectArguments; } } } } // 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
- OutputScopeManager.cs
- PropertyMetadata.cs
- ApplicationContext.cs
- XmlSchemaCollection.cs
- FileFormatException.cs
- CompiledQuery.cs
- OutputCacheProfileCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- XmlTextReader.cs
- SqlDependencyListener.cs
- TableItemStyle.cs
- SqlCacheDependencyDatabaseCollection.cs
- SamlDoNotCacheCondition.cs
- ToolStripRendererSwitcher.cs
- Geometry3D.cs
- Range.cs
- TiffBitmapEncoder.cs
- ApplicationServicesHostFactory.cs
- SequentialWorkflowRootDesigner.cs
- mediaeventshelper.cs
- UiaCoreApi.cs
- FloaterBaseParagraph.cs
- LinkLabel.cs
- Identity.cs
- RefreshEventArgs.cs
- XmlAttributeAttribute.cs
- SerialPinChanges.cs
- DictionaryTraceRecord.cs
- Persist.cs
- TextServicesCompartmentContext.cs
- TextFindEngine.cs
- MetaData.cs
- NamedPipeTransportBindingElement.cs
- ScrollItemProviderWrapper.cs
- Pen.cs
- XmlSchemaAttributeGroup.cs
- RowSpanVector.cs
- NonParentingControl.cs
- PrintPreviewControl.cs
- SID.cs
- NotifyInputEventArgs.cs
- CodeCompiler.cs
- OdbcFactory.cs
- EventPropertyMap.cs
- DataGridViewComponentPropertyGridSite.cs
- HtmlElementEventArgs.cs
- ReferencedCollectionType.cs
- CultureInfoConverter.cs
- SupportsEventValidationAttribute.cs
- SchemaObjectWriter.cs
- Parallel.cs
- COM2IDispatchConverter.cs
- TerminatingOperationBehavior.cs
- ModifiableIteratorCollection.cs
- SqlFactory.cs
- UnsafeNetInfoNativeMethods.cs
- TableItemStyle.cs
- MetabaseServerConfig.cs
- TextDecoration.cs
- LogWriteRestartAreaAsyncResult.cs
- ToolStripLabel.cs
- HttpCookie.cs
- SQLGuid.cs
- IgnoreSectionHandler.cs
- PngBitmapDecoder.cs
- PropertyDescriptor.cs
- XmlSerializerSection.cs
- HttpSessionStateBase.cs
- ExpressionLink.cs
- CLSCompliantAttribute.cs
- TailPinnedEventArgs.cs
- FileVersionInfo.cs
- DynamicQueryableWrapper.cs
- LowerCaseStringConverter.cs
- EntityReference.cs
- OneOfElement.cs
- DbConnectionPoolCounters.cs
- VisualStyleInformation.cs
- SoapIncludeAttribute.cs
- ArglessEventHandlerProxy.cs
- SspiSafeHandles.cs
- SQLBinaryStorage.cs
- InstanceHandleConflictException.cs
- PointHitTestResult.cs
- HybridObjectCache.cs
- ConstraintCollection.cs
- ConfigurationStrings.cs
- RtfToXamlLexer.cs
- MenuTracker.cs
- WebPartTransformer.cs
- JsonServiceDocumentSerializer.cs
- ReadOnlyDictionary.cs
- EntityProxyFactory.cs
- TypeDependencyAttribute.cs
- SpeechSeg.cs
- CodeMethodReturnStatement.cs
- DataGridViewSelectedColumnCollection.cs
- AbsoluteQuery.cs
- FormsAuthenticationEventArgs.cs
- StreamUpgradeProvider.cs