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
- ThumbAutomationPeer.cs
- Rotation3DKeyFrameCollection.cs
- CacheAxisQuery.cs
- Msec.cs
- TableDetailsCollection.cs
- XamlStream.cs
- FlowLayoutPanel.cs
- Baml6Assembly.cs
- MessagePartDescriptionCollection.cs
- CallSiteHelpers.cs
- TransformCryptoHandle.cs
- RequestSecurityTokenResponseCollection.cs
- MemberCollection.cs
- SchemaTypeEmitter.cs
- ObservableDictionary.cs
- EncodingNLS.cs
- EdmItemCollection.cs
- CodeCastExpression.cs
- ClassValidator.cs
- Section.cs
- MultipleViewProviderWrapper.cs
- PropertyInfoSet.cs
- PackWebRequestFactory.cs
- WsatServiceAddress.cs
- XmlSerializableServices.cs
- Binding.cs
- IncrementalReadDecoders.cs
- SafeThemeHandle.cs
- BrowserCapabilitiesCompiler.cs
- AtomServiceDocumentSerializer.cs
- XmlSchemaIdentityConstraint.cs
- CodeTypeReferenceExpression.cs
- FunctionCommandText.cs
- Converter.cs
- CheckBoxRenderer.cs
- HtmlHistory.cs
- ScriptManager.cs
- DependencyProperty.cs
- PrintDialog.cs
- CodeNamespaceImportCollection.cs
- XmlSchemaInferenceException.cs
- ProbeMatches11.cs
- SQLInt16Storage.cs
- Enum.cs
- XmlSchemaInclude.cs
- SamlSerializer.cs
- storepermissionattribute.cs
- TextBoxBase.cs
- ContractTypeNameElement.cs
- BaseValidatorDesigner.cs
- TextElementAutomationPeer.cs
- DrawingCollection.cs
- StringAttributeCollection.cs
- LongPath.cs
- ApplicationSecurityManager.cs
- GenerateTemporaryAssemblyTask.cs
- QueryAccessibilityHelpEvent.cs
- DateTimeFormatInfoScanner.cs
- TextFormatterImp.cs
- FileSecurity.cs
- DelegatingTypeDescriptionProvider.cs
- listitem.cs
- LineBreak.cs
- ViewCellRelation.cs
- InputProviderSite.cs
- ViewgenContext.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- UITypeEditor.cs
- ClientFormsIdentity.cs
- EndOfStreamException.cs
- COAUTHIDENTITY.cs
- ProtocolsSection.cs
- UnsafeNativeMethodsPenimc.cs
- MinimizableAttributeTypeConverter.cs
- DefaultPropertyAttribute.cs
- TreeNodeCollection.cs
- Win32SafeHandles.cs
- BitmapImage.cs
- SoapSchemaImporter.cs
- EncryptedKeyIdentifierClause.cs
- MenuItem.cs
- InternalDispatchObject.cs
- UidManager.cs
- DesignerActionService.cs
- SecurityAppliedMessage.cs
- WebBrowserSiteBase.cs
- MethodToken.cs
- ColumnBinding.cs
- IsolatedStorageFileStream.cs
- ColorKeyFrameCollection.cs
- TextRangeSerialization.cs
- HideDisabledControlAdapter.cs
- EventToken.cs
- LayoutTable.cs
- ThreadStaticAttribute.cs
- XmlSchemaSimpleContentRestriction.cs
- GeneralTransform3D.cs
- TogglePattern.cs
- ServiceModelInstallComponent.cs
- WindowsClaimSet.cs