Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / ReadOnlyDataSourceView.cs / 1305376 / 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
- SourceItem.cs
- ExistsInCollection.cs
- SafeCryptoHandles.cs
- UIElement3DAutomationPeer.cs
- InfoCardSymmetricCrypto.cs
- ITreeGenerator.cs
- SecurityTokenTypes.cs
- ResourceContainer.cs
- ContextActivityUtils.cs
- SafeMemoryMappedViewHandle.cs
- BindingContext.cs
- DebugTracing.cs
- ModelPropertyCollectionImpl.cs
- ComboBoxAutomationPeer.cs
- ComPlusDiagnosticTraceRecords.cs
- DataGridDetailsPresenter.cs
- HttpWebRequestElement.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SecurityTokenRequirement.cs
- ModelService.cs
- FileClassifier.cs
- CookieProtection.cs
- PingOptions.cs
- ValueTypePropertyReference.cs
- InternalBufferOverflowException.cs
- SelectionEditingBehavior.cs
- MemberAccessException.cs
- IHttpResponseInternal.cs
- BitmapFrameEncode.cs
- PeerNameRegistration.cs
- PopupEventArgs.cs
- StringTraceRecord.cs
- InternalConfigRoot.cs
- DomainLiteralReader.cs
- DefaultWorkflowSchedulerService.cs
- Propagator.ExtentPlaceholderCreator.cs
- WindowsStatic.cs
- XmlSchemaIdentityConstraint.cs
- ColorInterpolationModeValidation.cs
- LoginUtil.cs
- SplayTreeNode.cs
- NoClickablePointException.cs
- ServiceModelSectionGroup.cs
- TdsValueSetter.cs
- XamlContextStack.cs
- SecUtil.cs
- TransactionFlowElement.cs
- ExternalCalls.cs
- WebChannelFactory.cs
- SamlConstants.cs
- SoapSchemaImporter.cs
- GPRECTF.cs
- FormattedTextSymbols.cs
- NumberFormatter.cs
- LoginView.cs
- UIElement.cs
- LoginDesignerUtil.cs
- BorderGapMaskConverter.cs
- XmlAttributeAttribute.cs
- MimeTypeAttribute.cs
- CodeSnippetCompileUnit.cs
- ConfigurationElementCollection.cs
- CacheForPrimitiveTypes.cs
- WebBrowserPermission.cs
- Ray3DHitTestResult.cs
- SingleConverter.cs
- RegularExpressionValidator.cs
- Underline.cs
- XmlMembersMapping.cs
- DynamicControl.cs
- FocusManager.cs
- CrossContextChannel.cs
- EventWaitHandle.cs
- PropertyItemInternal.cs
- SolidColorBrush.cs
- DesignerActionUI.cs
- COAUTHIDENTITY.cs
- LocalValueEnumerator.cs
- BuildProvidersCompiler.cs
- PieceDirectory.cs
- XmlWrappingReader.cs
- ApplicationProxyInternal.cs
- SqlParameterizer.cs
- GridViewCommandEventArgs.cs
- PartitionedStream.cs
- ApplicationGesture.cs
- SystemInfo.cs
- GroupBoxRenderer.cs
- ObjectHandle.cs
- DesignerAttribute.cs
- DeflateEmulationStream.cs
- PeerServiceMessageContracts.cs
- FixedPageStructure.cs
- DataFieldConverter.cs
- SingleObjectCollection.cs
- ColumnMapProcessor.cs
- FilteredXmlReader.cs
- XmlAnyElementAttributes.cs
- ToolStripCollectionEditor.cs
- SplitContainer.cs