Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- AuthorizationSection.cs
- QueryAsyncResult.cs
- TreeBuilderBamlTranslator.cs
- SafeMILHandleMemoryPressure.cs
- StyleReferenceConverter.cs
- HealthMonitoringSectionHelper.cs
- TemplateControl.cs
- __TransparentProxy.cs
- ValueTypeFixupInfo.cs
- TargetException.cs
- ProfileBuildProvider.cs
- DataSourceHelper.cs
- MessagingActivityHelper.cs
- WsdlInspector.cs
- ImmutableObjectAttribute.cs
- EntityCommandCompilationException.cs
- SqlDataReaderSmi.cs
- Expressions.cs
- Matrix3DValueSerializer.cs
- BorderGapMaskConverter.cs
- counter.cs
- DbConnectionClosed.cs
- FieldDescriptor.cs
- SimpleApplicationHost.cs
- IdentityManager.cs
- SizeValueSerializer.cs
- CustomErrorCollection.cs
- HttpBufferlessInputStream.cs
- ByteAnimation.cs
- FormViewDeleteEventArgs.cs
- Helpers.cs
- XmlSchemaSet.cs
- Repeater.cs
- ToolstripProfessionalRenderer.cs
- PropertyPathWorker.cs
- Renderer.cs
- NestedContainer.cs
- Pair.cs
- XmlHierarchicalEnumerable.cs
- MinMaxParagraphWidth.cs
- XmlNamespaceMappingCollection.cs
- serverconfig.cs
- IncrementalCompileAnalyzer.cs
- DiscoveryClientReferences.cs
- X509ChainPolicy.cs
- RectKeyFrameCollection.cs
- Relationship.cs
- NavigationWindow.cs
- MenuAdapter.cs
- FormsAuthenticationUserCollection.cs
- RenderingBiasValidation.cs
- Math.cs
- XmlDictionaryString.cs
- TagPrefixAttribute.cs
- SimpleWebHandlerParser.cs
- XmlCDATASection.cs
- ImageListImageEditor.cs
- DataGridViewRowEventArgs.cs
- PointAnimationClockResource.cs
- WindowsContainer.cs
- HierarchicalDataBoundControlAdapter.cs
- CalendarDataBindingHandler.cs
- AssemblyResourceLoader.cs
- XmlDataSourceNodeDescriptor.cs
- SessionStateSection.cs
- EUCJPEncoding.cs
- MediaContextNotificationWindow.cs
- Mouse.cs
- DynamicValidator.cs
- IPipelineRuntime.cs
- SchemaReference.cs
- ServiceHostingEnvironment.cs
- RemotingSurrogateSelector.cs
- RulePatternOps.cs
- ToolStripProgressBar.cs
- WsdlBuildProvider.cs
- MulticastOption.cs
- SchemaImporterExtensionElement.cs
- GradientStop.cs
- WizardPanel.cs
- LinqToSqlWrapper.cs
- SiteMapNode.cs
- ImageMap.cs
- IncomingWebResponseContext.cs
- ContainerTracking.cs
- DataControlCommands.cs
- DataGridRelationshipRow.cs
- ManagementEventArgs.cs
- ValidatorCompatibilityHelper.cs
- SqlCacheDependencyDatabase.cs
- FieldNameLookup.cs
- XmlSignificantWhitespace.cs
- DBProviderConfigurationHandler.cs
- AccessorTable.cs
- BitmapEffectInputConnector.cs
- AnimationClock.cs
- ConsoleTraceListener.cs
- RequestValidator.cs
- Converter.cs
- ExpressionBuilder.cs