Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- MissingManifestResourceException.cs
- DateTimeHelper.cs
- EntityModelSchemaGenerator.cs
- AsymmetricSignatureDeformatter.cs
- TouchEventArgs.cs
- DocumentGrid.cs
- UiaCoreProviderApi.cs
- CharEnumerator.cs
- StorageBasedPackageProperties.cs
- Literal.cs
- CodeMemberMethod.cs
- HostedTcpTransportManager.cs
- XMLSchema.cs
- OleTxTransactionInfo.cs
- VirtualizingPanel.cs
- PassportAuthenticationModule.cs
- ListControl.cs
- PersistenceTypeAttribute.cs
- RubberbandSelector.cs
- PropertyEmitter.cs
- HGlobalSafeHandle.cs
- ColumnBinding.cs
- OpenTypeLayout.cs
- GeneralTransform.cs
- TypeUtil.cs
- ForceCopyBuildProvider.cs
- MailDefinition.cs
- Completion.cs
- CommandLibraryHelper.cs
- BitmapSizeOptions.cs
- SoapFormatter.cs
- XmlQueryCardinality.cs
- DragEvent.cs
- HtmlInputImage.cs
- webbrowsersite.cs
- Blend.cs
- GridViewColumnHeaderAutomationPeer.cs
- FileCodeGroup.cs
- DataGridViewButtonColumn.cs
- AppDomainGrammarProxy.cs
- InvalidPrinterException.cs
- Nodes.cs
- COM2ComponentEditor.cs
- MailAddressParser.cs
- LineGeometry.cs
- NotSupportedException.cs
- SessionStateItemCollection.cs
- DrawingContextWalker.cs
- Brush.cs
- BinaryParser.cs
- SerializationFieldInfo.cs
- DateTimeValueSerializer.cs
- SqlInternalConnectionTds.cs
- BaseParser.cs
- UpDownBase.cs
- ProfileParameter.cs
- BooleanKeyFrameCollection.cs
- ParameterElementCollection.cs
- HttpRequestBase.cs
- ProgressPage.cs
- EastAsianLunisolarCalendar.cs
- IPCCacheManager.cs
- NavigationProgressEventArgs.cs
- XamlInt32CollectionSerializer.cs
- BrowserCapabilitiesFactory35.cs
- SortedList.cs
- ConfigurationConverterBase.cs
- Application.cs
- EventLogPermissionAttribute.cs
- ToolStripDesignerUtils.cs
- AttributeCollection.cs
- NavigationPropertyEmitter.cs
- StaticFileHandler.cs
- SoapSchemaMember.cs
- DES.cs
- XamlTypeMapper.cs
- XmlSchemaSet.cs
- XmlComplianceUtil.cs
- RuleElement.cs
- KeyedPriorityQueue.cs
- TransformCollection.cs
- ProfileModule.cs
- ThreadExceptionDialog.cs
- XmlSchemaGroup.cs
- AnnotationMap.cs
- BindValidator.cs
- _SSPIWrapper.cs
- MethodBuilder.cs
- SqlDataRecord.cs
- FileLoadException.cs
- PropertyTab.cs
- SqlCacheDependency.cs
- ContextMenu.cs
- AutoCompleteStringCollection.cs
- DataTrigger.cs
- StateValidator.cs
- MergeFailedEvent.cs
- ModifiableIteratorCollection.cs
- TraceSection.cs
- PropertyGridCommands.cs