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
- WindowHideOrCloseTracker.cs
- PopupControlService.cs
- SelfSignedCertificate.cs
- PropertyConverter.cs
- StringFreezingAttribute.cs
- HwndMouseInputProvider.cs
- DateTimeSerializationSection.cs
- Int32EqualityComparer.cs
- ScrollEvent.cs
- Stylesheet.cs
- ScrollEventArgs.cs
- EventLogReader.cs
- Geometry.cs
- DrawListViewItemEventArgs.cs
- DBCommandBuilder.cs
- WebWorkflowRole.cs
- Activator.cs
- SystemSounds.cs
- ConfigXmlWhitespace.cs
- NamedPipeConnectionPool.cs
- StatusCommandUI.cs
- SqlInternalConnectionSmi.cs
- DataKey.cs
- ParallelTimeline.cs
- StickyNote.cs
- rsa.cs
- RemoveStoryboard.cs
- SemanticAnalyzer.cs
- RuntimeEnvironment.cs
- DataDocumentXPathNavigator.cs
- HTMLTextWriter.cs
- ObjectQuery_EntitySqlExtensions.cs
- DynamicArgumentDialog.cs
- StylusButton.cs
- PasswordRecoveryAutoFormat.cs
- CroppedBitmap.cs
- AppliedDeviceFiltersDialog.cs
- MarshalDirectiveException.cs
- StringFreezingAttribute.cs
- ChangeTracker.cs
- precedingquery.cs
- BackoffTimeoutHelper.cs
- StateBag.cs
- PropertyMappingExceptionEventArgs.cs
- GeometryHitTestParameters.cs
- WebFormDesignerActionService.cs
- KeyInfo.cs
- ContentPresenter.cs
- Paragraph.cs
- MetadataCache.cs
- ClientScriptManagerWrapper.cs
- NameSpaceExtractor.cs
- SimpleModelProvider.cs
- AnonymousIdentificationSection.cs
- TextTrailingCharacterEllipsis.cs
- HtmlShim.cs
- DebuggerService.cs
- MailMessage.cs
- HttpValueCollection.cs
- ValidatorCollection.cs
- Int32EqualityComparer.cs
- PrimitiveDataContract.cs
- VirtualPathUtility.cs
- ProxyAttribute.cs
- WebPartVerbsEventArgs.cs
- XmlSchemaObject.cs
- AtomicFile.cs
- SystemBrushes.cs
- SelfSignedCertificate.cs
- GradientStop.cs
- AsymmetricAlgorithm.cs
- PageAdapter.cs
- GridViewColumnHeaderAutomationPeer.cs
- FlowDocumentScrollViewer.cs
- AggregateNode.cs
- WindowsFormsLinkLabel.cs
- FastEncoder.cs
- MediaCommands.cs
- LocalFileSettingsProvider.cs
- SQLBinary.cs
- SqlCacheDependencyDatabaseCollection.cs
- objectresult_tresulttype.cs
- LineServicesCallbacks.cs
- ModelVisual3D.cs
- FrameDimension.cs
- DataServiceKeyAttribute.cs
- ItemsPanelTemplate.cs
- CodeFieldReferenceExpression.cs
- MouseDevice.cs
- RemoteWebConfigurationHostStream.cs
- RegisteredExpandoAttribute.cs
- PopOutPanel.cs
- RectangleF.cs
- QilXmlReader.cs
- SqlDataSourceCustomCommandPanel.cs
- AssemblyBuilder.cs
- PropagatorResult.cs
- CharConverter.cs
- arabicshape.cs
- NGCSerializationManager.cs