Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebControls / ReadOnlyDataSourceView.cs / 1 / ReadOnlyDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Web.UI; using System.Web.Util; ////// This class is used by ReadOnlyDataSource to represent an individual /// view of a generic data source. /// internal sealed class ReadOnlyDataSourceView : DataSourceView { private IEnumerable _dataSource; public ReadOnlyDataSourceView(ReadOnlyDataSource owner, string name, IEnumerable dataSource) : base(owner, name) { _dataSource = dataSource; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _dataSource; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Web.UI; using System.Web.Util; ////// This class is used by ReadOnlyDataSource to represent an individual /// view of a generic data source. /// internal sealed class ReadOnlyDataSourceView : DataSourceView { private IEnumerable _dataSource; public ReadOnlyDataSourceView(ReadOnlyDataSource owner, string name, IEnumerable dataSource) : base(owner, name) { _dataSource = dataSource; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _dataSource; } } } // 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
- DataControlLinkButton.cs
- WindowsFormsHostPropertyMap.cs
- OrderByQueryOptionExpression.cs
- ThousandthOfEmRealDoubles.cs
- DataGridViewRowsRemovedEventArgs.cs
- ContextBase.cs
- XPathAncestorQuery.cs
- GeometryDrawing.cs
- CodeAttributeArgument.cs
- CompositeControl.cs
- AttachmentService.cs
- IDReferencePropertyAttribute.cs
- Size.cs
- XmlNode.cs
- DiscoveryClientProtocol.cs
- ErrorTolerantObjectWriter.cs
- PropertyKey.cs
- DetailsViewInsertedEventArgs.cs
- CustomAttributeFormatException.cs
- DataGridTextBox.cs
- DbException.cs
- SchemaDeclBase.cs
- WebPartDeleteVerb.cs
- WindowsSolidBrush.cs
- StickyNote.cs
- ActivityExecutionContextCollection.cs
- TabPanel.cs
- PlainXmlSerializer.cs
- FullTextBreakpoint.cs
- WebHttpSecurityElement.cs
- InputLanguage.cs
- SimpleRecyclingCache.cs
- AnimationLayer.cs
- WinFormsSpinner.cs
- DocumentSequence.cs
- IPGlobalProperties.cs
- RNGCryptoServiceProvider.cs
- MobileSysDescriptionAttribute.cs
- remotingproxy.cs
- BaseDataListDesigner.cs
- DbMetaDataColumnNames.cs
- TimeZone.cs
- ObjectAssociationEndMapping.cs
- DragDropHelper.cs
- IndentedTextWriter.cs
- ControlIdConverter.cs
- SqlConnectionManager.cs
- SecurityUtils.cs
- RemoteWebConfigurationHost.cs
- ElapsedEventArgs.cs
- Selection.cs
- ReflectionPermission.cs
- FactoryGenerator.cs
- GetWinFXPath.cs
- AssemblyAttributesGoHere.cs
- BitmapCodecInfoInternal.cs
- PerformanceCounterCategory.cs
- DataGridViewCellMouseEventArgs.cs
- _TimerThread.cs
- PublishLicense.cs
- ColorTranslator.cs
- ServiceModelInstallComponent.cs
- HttpRawResponse.cs
- StatusBarItem.cs
- CreateParams.cs
- Viewport3DAutomationPeer.cs
- cookiecollection.cs
- ClientSettingsProvider.cs
- SimpleWorkerRequest.cs
- AsyncCompletedEventArgs.cs
- RowToParametersTransformer.cs
- TabletCollection.cs
- CodeTryCatchFinallyStatement.cs
- ToolStripProgressBar.cs
- MetadataResolver.cs
- ExpandoObject.cs
- DesignerAttribute.cs
- XPathDocumentIterator.cs
- BooleanProjectedSlot.cs
- Types.cs
- DomainUpDown.cs
- FreezableDefaultValueFactory.cs
- SlipBehavior.cs
- FixUpCollection.cs
- MasterPage.cs
- VirtualDirectoryMapping.cs
- XslAst.cs
- XmlSchemaInferenceException.cs
- BitmapEffectInput.cs
- Pair.cs
- TableRowCollection.cs
- GridViewHeaderRowPresenter.cs
- XmlAttributeAttribute.cs
- PageThemeParser.cs
- QuotedPrintableStream.cs
- EditingMode.cs
- HierarchicalDataSourceControl.cs
- SingleAnimationBase.cs
- XmlElementAttribute.cs
- RadioButtonBaseAdapter.cs