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
- pingexception.cs
- NamespaceEmitter.cs
- ResourceReader.cs
- DataGridView.cs
- SqlDataSourceCommandEventArgs.cs
- MenuRendererClassic.cs
- RoutingEndpointTrait.cs
- DiscoveryReferences.cs
- PagerSettings.cs
- ConfigurationConverterBase.cs
- ReadOnlyDictionary.cs
- mansign.cs
- DispatcherHookEventArgs.cs
- _LoggingObject.cs
- Baml2006ReaderFrame.cs
- HitTestResult.cs
- GroupStyle.cs
- Rights.cs
- log.cs
- OutputCacheSettingsSection.cs
- Types.cs
- ParserExtension.cs
- InstanceNotFoundException.cs
- SkewTransform.cs
- DelayedRegex.cs
- OpacityConverter.cs
- Soap12ProtocolReflector.cs
- AssociationSet.cs
- CheckBoxField.cs
- ToolStripArrowRenderEventArgs.cs
- MailHeaderInfo.cs
- TableLayoutPanelCellPosition.cs
- _RequestLifetimeSetter.cs
- BufferCache.cs
- RelatedView.cs
- OdbcConnectionFactory.cs
- IndexedGlyphRun.cs
- SolidBrush.cs
- XmlnsCache.cs
- Walker.cs
- AttributeProviderAttribute.cs
- Screen.cs
- ContextInformation.cs
- EventLogHandle.cs
- UnmanagedMemoryAccessor.cs
- SystemIPGlobalStatistics.cs
- NominalTypeEliminator.cs
- DocumentEventArgs.cs
- MissingFieldException.cs
- PropertyGridCommands.cs
- DataTableCollection.cs
- WorkflowInstanceProxy.cs
- ContentPlaceHolder.cs
- HashMembershipCondition.cs
- ClientRoleProvider.cs
- GridViewColumn.cs
- ThicknessAnimation.cs
- BookmarkInfo.cs
- ProcessHostServerConfig.cs
- SemanticAnalyzer.cs
- XmlEncoding.cs
- ChangePassword.cs
- XmlFormatExtensionPrefixAttribute.cs
- ComboBoxRenderer.cs
- webclient.cs
- DragDeltaEventArgs.cs
- Int64AnimationUsingKeyFrames.cs
- AxHost.cs
- ConfigurationManagerHelperFactory.cs
- DesignBindingValueUIHandler.cs
- DataGridViewHeaderCell.cs
- HierarchicalDataSourceControl.cs
- TextParagraphProperties.cs
- ProcessHostMapPath.cs
- ComponentDispatcherThread.cs
- InvariantComparer.cs
- DataDocumentXPathNavigator.cs
- DrawListViewSubItemEventArgs.cs
- ConfigurationSettings.cs
- CodeAccessSecurityEngine.cs
- DbLambda.cs
- DispatcherExceptionFilterEventArgs.cs
- ColumnResizeUndoUnit.cs
- ValueTypeFixupInfo.cs
- TextOutput.cs
- OdbcConnectionFactory.cs
- RectConverter.cs
- ActivityExecutorSurrogate.cs
- ArrayItemReference.cs
- TimeoutHelper.cs
- BindingContext.cs
- HttpChannelBindingToken.cs
- BrushConverter.cs
- OleDbException.cs
- TextTreeTextBlock.cs
- ExternalException.cs
- SettingsPropertyNotFoundException.cs
- CustomErrorCollection.cs
- SafeNativeMethods.cs
- UserValidatedEventArgs.cs