Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- FrameSecurityDescriptor.cs
- DataFormats.cs
- Sql8ExpressionRewriter.cs
- ListSourceHelper.cs
- Drawing.cs
- DbModificationClause.cs
- EncodingTable.cs
- SimpleBitVector32.cs
- BitSet.cs
- PagerSettings.cs
- RowUpdatingEventArgs.cs
- Encoding.cs
- EntityDataSourceMemberPath.cs
- List.cs
- DisplayNameAttribute.cs
- input.cs
- SelectionRangeConverter.cs
- TreeNodeStyle.cs
- TextSchema.cs
- ServiceObjectContainer.cs
- FrameworkContentElementAutomationPeer.cs
- ActiveXContainer.cs
- CommandBindingCollection.cs
- ChannelTracker.cs
- TextDecorationLocationValidation.cs
- ValidateNames.cs
- XmlSerializableWriter.cs
- DocumentOrderComparer.cs
- RegexParser.cs
- NullableConverter.cs
- XPathExpr.cs
- XmlProcessingInstruction.cs
- DataSourceView.cs
- _LocalDataStoreMgr.cs
- RayMeshGeometry3DHitTestResult.cs
- SqlConnectionManager.cs
- ToolStripStatusLabel.cs
- Timer.cs
- FontUnitConverter.cs
- regiisutil.cs
- ParserHooks.cs
- ContextItem.cs
- Documentation.cs
- WebControlsSection.cs
- WorkflowMessageEventHandler.cs
- IndexOutOfRangeException.cs
- ServerValidateEventArgs.cs
- ServiceActivationException.cs
- TopClause.cs
- LayoutTableCell.cs
- XmlIncludeAttribute.cs
- SessionStateUtil.cs
- ToolBarPanel.cs
- PropertyPanel.cs
- SqlDataSourceConfigureSortForm.cs
- ApplicationProxyInternal.cs
- EmptyEnumerable.cs
- OleDbRowUpdatingEvent.cs
- Pts.cs
- HttpResponseHeader.cs
- ProcessInfo.cs
- XmlSchemaCompilationSettings.cs
- ClusterSafeNativeMethods.cs
- TypeBuilderInstantiation.cs
- ObjectConverter.cs
- DefaultSection.cs
- DeviceOverridableAttribute.cs
- SafeBitVector32.cs
- ReadOnlyObservableCollection.cs
- MobileCategoryAttribute.cs
- IfJoinedCondition.cs
- CustomCredentialPolicy.cs
- GridViewRowCollection.cs
- SelectionRange.cs
- RouteData.cs
- HtmlInputFile.cs
- WorkflowViewService.cs
- RectKeyFrameCollection.cs
- BaseDataListComponentEditor.cs
- TextStore.cs
- StreamInfo.cs
- BamlCollectionHolder.cs
- EdgeProfileValidation.cs
- BamlLocalizableResource.cs
- AsymmetricSignatureDeformatter.cs
- AddInBase.cs
- BinarySerializer.cs
- DynamicDocumentPaginator.cs
- SortQuery.cs
- WebPartTracker.cs
- LoadWorkflowCommand.cs
- RegexCapture.cs
- Color.cs
- ColumnReorderedEventArgs.cs
- WebPartRestoreVerb.cs
- _NestedSingleAsyncResult.cs
- TextServicesManager.cs
- FixUpCollection.cs
- PropertyGridCommands.cs
- FilteredReadOnlyMetadataCollection.cs