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 / AccessDataSourceView.cs / 1 / AccessDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing.Design; using System.IO; using System.Security.Permissions; using System.Text; using System.Web.UI; using System.Web.Util; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class AccessDataSourceView : SqlDataSourceView { private AccessDataSource _owner; ////// Creates a new instance of AccessDataSourceView. /// public AccessDataSourceView(AccessDataSource owner, string name, HttpContext context) : base(owner, name, context) { Debug.Assert(owner != null); _owner = owner; } ////// Returns all the rows of the datasource. /// protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { if (String.IsNullOrEmpty(_owner.DataFile)) { throw new InvalidOperationException(SR.GetString(SR.AccessDataSourceView_SelectRequiresDataFile, _owner.ID)); } return base.ExecuteSelect(arguments); } } } // 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.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing.Design; using System.IO; using System.Security.Permissions; using System.Text; using System.Web.UI; using System.Web.Util; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class AccessDataSourceView : SqlDataSourceView { private AccessDataSource _owner; ////// Creates a new instance of AccessDataSourceView. /// public AccessDataSourceView(AccessDataSource owner, string name, HttpContext context) : base(owner, name, context) { Debug.Assert(owner != null); _owner = owner; } ////// Returns all the rows of the datasource. /// protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { if (String.IsNullOrEmpty(_owner.DataFile)) { throw new InvalidOperationException(SR.GetString(SR.AccessDataSourceView_SelectRequiresDataFile, _owner.ID)); } return base.ExecuteSelect(arguments); } } } // 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
- NotifyCollectionChangedEventArgs.cs
- SchemaInfo.cs
- ResourceType.cs
- CalculatedColumn.cs
- PartialList.cs
- WebEventCodes.cs
- VisualBrush.cs
- System.Data_BID.cs
- WebPartEditorCancelVerb.cs
- ProfileGroupSettings.cs
- MultipartContentParser.cs
- PageClientProxyGenerator.cs
- HtmlLinkAdapter.cs
- DataPager.cs
- ThreadStartException.cs
- SkewTransform.cs
- returneventsaver.cs
- InputReportEventArgs.cs
- CacheDependency.cs
- pingexception.cs
- CustomCredentialPolicy.cs
- ValidationHelpers.cs
- DecodeHelper.cs
- EdmPropertyAttribute.cs
- NetPeerTcpBindingCollectionElement.cs
- CryptoHelper.cs
- FacetValues.cs
- OdbcRowUpdatingEvent.cs
- ErrorWrapper.cs
- InvalidFilterCriteriaException.cs
- DataGridViewCellPaintingEventArgs.cs
- OleDbCommand.cs
- FixedTextContainer.cs
- ListViewItem.cs
- UndoUnit.cs
- SQLCharsStorage.cs
- XmlUrlResolver.cs
- RecommendedAsConfigurableAttribute.cs
- HtmlTableRowCollection.cs
- ToolStripLocationCancelEventArgs.cs
- PropertyContainer.cs
- HttpRuntime.cs
- Currency.cs
- WebServiceParameterData.cs
- LineBreak.cs
- HitTestFilterBehavior.cs
- Mapping.cs
- DataSourceBooleanViewSchemaConverter.cs
- WebPart.cs
- SQLBytesStorage.cs
- PagerSettings.cs
- EntityProviderServices.cs
- Annotation.cs
- Win32.cs
- MediaTimeline.cs
- Attribute.cs
- SvcMapFileLoader.cs
- UnsafeNativeMethodsTablet.cs
- M3DUtil.cs
- FactoryGenerator.cs
- SqlStream.cs
- RowBinding.cs
- ListViewSortEventArgs.cs
- ToolStripSplitStackLayout.cs
- WsdlServiceChannelBuilder.cs
- Visual3D.cs
- SolidBrush.cs
- AppDomainFactory.cs
- HtmlLinkAdapter.cs
- Vector3DCollectionConverter.cs
- CharEntityEncoderFallback.cs
- LinqMaximalSubtreeNominator.cs
- TargetConverter.cs
- PriorityChain.cs
- HGlobalSafeHandle.cs
- SkewTransform.cs
- _UriSyntax.cs
- CqlParser.cs
- SQLByte.cs
- PackageFilter.cs
- Zone.cs
- GorillaCodec.cs
- PnrpPermission.cs
- HttpPostClientProtocol.cs
- SHA1CryptoServiceProvider.cs
- storepermissionattribute.cs
- DataGridDesigner.cs
- SplitterCancelEvent.cs
- DataGridCellsPanel.cs
- TextRangeEditLists.cs
- ThemeInfoAttribute.cs
- Wildcard.cs
- InvalidCastException.cs
- PropertyCollection.cs
- TextEffectCollection.cs
- ArrayConverter.cs
- InputLanguageProfileNotifySink.cs
- FileUpload.cs
- DataGridViewTextBoxCell.cs
- DateTimeFormatInfo.cs