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
- ListDataBindEventArgs.cs
- RequestUriProcessor.cs
- WebControlsSection.cs
- TextBlockAutomationPeer.cs
- VectorCollectionConverter.cs
- HtmlToClrEventProxy.cs
- ActivationServices.cs
- ScrollChrome.cs
- sitestring.cs
- DeflateStream.cs
- DispatcherEventArgs.cs
- ActiveXSite.cs
- precedingquery.cs
- EmptyElement.cs
- ContainerUIElement3D.cs
- EnumerableCollectionView.cs
- TextDecorations.cs
- HttpModuleCollection.cs
- ADConnectionHelper.cs
- ZoneButton.cs
- HwndSourceKeyboardInputSite.cs
- NodeLabelEditEvent.cs
- SoapEnumAttribute.cs
- ContentType.cs
- DocumentViewerAutomationPeer.cs
- BindingListCollectionView.cs
- GeneralTransform3DGroup.cs
- MergeFailedEvent.cs
- NullableDecimalMinMaxAggregationOperator.cs
- AppDomain.cs
- LayoutInformation.cs
- TraceSwitch.cs
- BindingNavigator.cs
- FileSystemWatcher.cs
- ComIntegrationManifestGenerator.cs
- VectorAnimationUsingKeyFrames.cs
- HighlightVisual.cs
- AttributedMetaModel.cs
- DropTarget.cs
- RouteData.cs
- Matrix.cs
- BindingsCollection.cs
- GridViewSelectEventArgs.cs
- TableLayout.cs
- SettingsPropertyValueCollection.cs
- XmlWhitespace.cs
- InvokeHandlers.cs
- ReadOnlyMetadataCollection.cs
- EventRecordWrittenEventArgs.cs
- RectConverter.cs
- DbParameterCollection.cs
- TriggerBase.cs
- ThreadStaticAttribute.cs
- LabelLiteral.cs
- DbDataReader.cs
- QilList.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ReflectTypeDescriptionProvider.cs
- WebScriptClientGenerator.cs
- LocalTransaction.cs
- SerializationObjectManager.cs
- WebReference.cs
- WebServicesDescriptionAttribute.cs
- FormViewDeleteEventArgs.cs
- tooltip.cs
- FormViewPagerRow.cs
- BinaryFormatter.cs
- SafeProcessHandle.cs
- ScrollData.cs
- InfoCardMetadataExchangeClient.cs
- DrawingCollection.cs
- PackageStore.cs
- SQLBinaryStorage.cs
- securitycriticaldata.cs
- OdbcFactory.cs
- Int64.cs
- APCustomTypeDescriptor.cs
- ListBoxChrome.cs
- SingleAnimationUsingKeyFrames.cs
- FormsAuthenticationModule.cs
- BitmapEffectInputData.cs
- HttpProfileBase.cs
- GetKeyedHashRequest.cs
- Main.cs
- XmlSchemaComplexContentRestriction.cs
- EraserBehavior.cs
- XmlAttributeHolder.cs
- CodeDirectionExpression.cs
- AvTraceDetails.cs
- LightweightCodeGenerator.cs
- CreateUserWizard.cs
- TargetException.cs
- EntityDataSourceSelectingEventArgs.cs
- DPTypeDescriptorContext.cs
- DbFunctionCommandTree.cs
- CssClassPropertyAttribute.cs
- SerializationInfoEnumerator.cs
- sqlstateclientmanager.cs
- TextTreeTextElementNode.cs
- FullTextBreakpoint.cs