Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- GridViewAutoFormat.cs
- MULTI_QI.cs
- ActiveXContainer.cs
- DbRetry.cs
- ChildTable.cs
- SetUserLanguageRequest.cs
- ColorConvertedBitmap.cs
- Debug.cs
- DescendantQuery.cs
- WebErrorHandler.cs
- EmptyStringExpandableObjectConverter.cs
- StatusCommandUI.cs
- CommandHelper.cs
- PanelStyle.cs
- ConfigUtil.cs
- DataGridItem.cs
- TransactionWaitAsyncResult.cs
- ControlPropertyNameConverter.cs
- CharEntityEncoderFallback.cs
- ListItemCollection.cs
- MarkupProperty.cs
- WindowsFont.cs
- XmlQueryStaticData.cs
- HighContrastHelper.cs
- InvalidateEvent.cs
- LabelInfo.cs
- OletxDependentTransaction.cs
- DesignBindingEditor.cs
- StatusBar.cs
- EventTrigger.cs
- ProgressBar.cs
- ProgressBarRenderer.cs
- SimpleRecyclingCache.cs
- DateRangeEvent.cs
- BoundPropertyEntry.cs
- PageCodeDomTreeGenerator.cs
- WhereQueryOperator.cs
- Win32KeyboardDevice.cs
- LinkUtilities.cs
- InstanceDataCollectionCollection.cs
- Brush.cs
- LogLogRecordEnumerator.cs
- SmiTypedGetterSetter.cs
- DataGridViewComboBoxCell.cs
- DataTableMapping.cs
- Animatable.cs
- SafeNativeMethods.cs
- FixedSOMTableRow.cs
- RealizationContext.cs
- ConfigXmlSignificantWhitespace.cs
- ISAPIWorkerRequest.cs
- SByteStorage.cs
- ConnectionProviderAttribute.cs
- FixedPosition.cs
- WsrmFault.cs
- TreeViewImageIndexConverter.cs
- RC2CryptoServiceProvider.cs
- SoapEnvelopeProcessingElement.cs
- HtmlDocument.cs
- WeakEventTable.cs
- ErrorInfoXmlDocument.cs
- InstanceDataCollection.cs
- StringAnimationUsingKeyFrames.cs
- MD5.cs
- FormsAuthenticationTicket.cs
- SecurityVerifiedMessage.cs
- VirtualizedContainerService.cs
- LinearGradientBrush.cs
- ProxyWebPart.cs
- SrgsElementFactoryCompiler.cs
- SrgsNameValueTag.cs
- MimeTypeMapper.cs
- Point3DValueSerializer.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- PaperSize.cs
- UnionExpr.cs
- CodeNamespace.cs
- SqlDataSourceFilteringEventArgs.cs
- SR.cs
- ControlAdapter.cs
- HeaderedContentControl.cs
- PackagingUtilities.cs
- ObjectViewListener.cs
- CryptoProvider.cs
- KeyValuePairs.cs
- HtmlCommandAdapter.cs
- WindowsTab.cs
- ProtectedConfiguration.cs
- SmiRequestExecutor.cs
- ServiceDebugBehavior.cs
- ResetableIterator.cs
- CalendarDesigner.cs
- LogRestartAreaEnumerator.cs
- RuntimeVariablesExpression.cs
- BigInt.cs
- CompilerGeneratedAttribute.cs
- GridViewEditEventArgs.cs
- AdobeCFFWrapper.cs
- SerialErrors.cs
- RemoveStoryboard.cs