Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CommandField.cs
- ImmutableObjectAttribute.cs
- SoapReflectionImporter.cs
- RuntimeResourceSet.cs
- SqlClientWrapperSmiStreamChars.cs
- DesignerAttribute.cs
- XmlQueryCardinality.cs
- FlowDocumentPaginator.cs
- srgsitem.cs
- DocumentXmlWriter.cs
- Set.cs
- LinkClickEvent.cs
- DbDataReader.cs
- MSAANativeProvider.cs
- DataBoundControlHelper.cs
- TypeForwardedFromAttribute.cs
- ForwardPositionQuery.cs
- NavigationPropertyEmitter.cs
- FileNotFoundException.cs
- ObjectDataSourceView.cs
- ProgressChangedEventArgs.cs
- AuthenticationModuleElement.cs
- RoleManagerModule.cs
- OverrideMode.cs
- XmlParserContext.cs
- ShaderEffect.cs
- WmpBitmapEncoder.cs
- EncodingTable.cs
- GorillaCodec.cs
- FastPropertyAccessor.cs
- Permission.cs
- ContextMenuAutomationPeer.cs
- UserCancellationException.cs
- StylusButtonEventArgs.cs
- UpdateCommand.cs
- ProxyWebPart.cs
- ContextMarshalException.cs
- TypeSource.cs
- SettingsBindableAttribute.cs
- BaseInfoTable.cs
- XmlWrappingReader.cs
- ValueQuery.cs
- HitTestParameters3D.cs
- SchemaRegistration.cs
- coordinatorscratchpad.cs
- ImageMapEventArgs.cs
- DockPattern.cs
- SqlTypeConverter.cs
- XmlSchemaChoice.cs
- UniqueIdentifierService.cs
- ObjectStorage.cs
- SafeBitVector32.cs
- SqlTriggerContext.cs
- RotationValidation.cs
- FlowNode.cs
- SocketStream.cs
- ChannelServices.cs
- XsltInput.cs
- DebugView.cs
- BuiltInExpr.cs
- DispatcherSynchronizationContext.cs
- Color.cs
- DetailsView.cs
- xml.cs
- Environment.cs
- xmlsaver.cs
- InputBuffer.cs
- WorkflowEventArgs.cs
- UniqueConstraint.cs
- CodeSnippetExpression.cs
- GeometryCombineModeValidation.cs
- Documentation.cs
- AsyncResult.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ToolStripComboBox.cs
- CellTreeNodeVisitors.cs
- SpellerError.cs
- ListDictionaryInternal.cs
- SimpleApplicationHost.cs
- TabControlCancelEvent.cs
- DataFormat.cs
- StyleReferenceConverter.cs
- TcpClientSocketManager.cs
- OleDbStruct.cs
- FixedDocumentSequencePaginator.cs
- ZoneButton.cs
- SocketAddress.cs
- XmlChildEnumerator.cs
- SoapIncludeAttribute.cs
- AsymmetricSecurityProtocol.cs
- QuotedPrintableStream.cs
- AspNetHostingPermission.cs
- IdnMapping.cs
- RunWorkerCompletedEventArgs.cs
- TextTreeObjectNode.cs
- DataGridViewCellStyle.cs
- SimpleHandlerBuildProvider.cs
- InkCollectionBehavior.cs
- ExpressionBuilder.cs
- DtrList.cs