Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextBox.cs
- AppDomainShutdownMonitor.cs
- TriggerActionCollection.cs
- SiteMapPath.cs
- MdImport.cs
- BitmapEffectState.cs
- LayoutUtils.cs
- DataSourceSelectArguments.cs
- datacache.cs
- TimelineGroup.cs
- BidirectionalDictionary.cs
- SessionPageStatePersister.cs
- SmtpNtlmAuthenticationModule.cs
- WebExceptionStatus.cs
- BaseResourcesBuildProvider.cs
- UserPreferenceChangingEventArgs.cs
- CompoundFileStorageReference.cs
- ChangePassword.cs
- WindowsImpersonationContext.cs
- TaskFormBase.cs
- PageBuildProvider.cs
- CodeExpressionCollection.cs
- MetadataItemEmitter.cs
- CellTreeNodeVisitors.cs
- ListViewEditEventArgs.cs
- QueryOperationResponseOfT.cs
- SelectQueryOperator.cs
- SafePEFileHandle.cs
- ReferencedCollectionType.cs
- SplitterPanelDesigner.cs
- Win32PrintDialog.cs
- BooleanConverter.cs
- GroupItemAutomationPeer.cs
- ObsoleteAttribute.cs
- SmiEventSink_DeferedProcessing.cs
- SafeNativeMethods.cs
- ThreadExceptionEvent.cs
- GeometryGroup.cs
- SafeMemoryMappedFileHandle.cs
- MenuItemStyleCollection.cs
- SHA512CryptoServiceProvider.cs
- IPPacketInformation.cs
- WindowsNonControl.cs
- DialogBaseForm.cs
- ImageIndexConverter.cs
- ProfileManager.cs
- DmlSqlGenerator.cs
- UnknownBitmapEncoder.cs
- DateTimeHelper.cs
- TextTreeExtractElementUndoUnit.cs
- EndpointDiscoveryMetadata.cs
- MouseOverProperty.cs
- SHA256Managed.cs
- ConcurrentStack.cs
- FilteredAttributeCollection.cs
- ResourceDescriptionAttribute.cs
- RadioButtonFlatAdapter.cs
- IChannel.cs
- XmlDocumentSerializer.cs
- BasicExpressionVisitor.cs
- CaseCqlBlock.cs
- DirectoryObjectSecurity.cs
- TickBar.cs
- DoubleIndependentAnimationStorage.cs
- FieldMetadata.cs
- SqlCacheDependencyDatabase.cs
- PreservationFileWriter.cs
- PluggableProtocol.cs
- MetadataSource.cs
- Compiler.cs
- DragDeltaEventArgs.cs
- ConfigUtil.cs
- DelegateSerializationHolder.cs
- PageTrueTypeFont.cs
- LinqDataSourceUpdateEventArgs.cs
- BypassElement.cs
- StreamUpgradeAcceptor.cs
- ProgressBarBrushConverter.cs
- ExpressionBindingsDialog.cs
- TabletCollection.cs
- FlowDocument.cs
- IndependentlyAnimatedPropertyMetadata.cs
- NamedPipeAppDomainProtocolHandler.cs
- StaticSiteMapProvider.cs
- WorkflowInstanceExtensionProvider.cs
- DataGridrowEditEndingEventArgs.cs
- LineServicesCallbacks.cs
- ClientEventManager.cs
- PaintValueEventArgs.cs
- PeerName.cs
- XmlIterators.cs
- InvalidChannelBindingException.cs
- Misc.cs
- TypedServiceOperationListItem.cs
- StylusSystemGestureEventArgs.cs
- SoapObjectReader.cs
- List.cs
- SiteMapNode.cs
- WebPartDisplayModeCollection.cs
- ApplicationSecurityManager.cs