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
- EncryptedHeaderXml.cs
- WebExceptionStatus.cs
- AllMembershipCondition.cs
- UIElementPropertyUndoUnit.cs
- DBBindings.cs
- HMACSHA384.cs
- ImageSource.cs
- NaturalLanguageHyphenator.cs
- Rotation3DAnimationBase.cs
- _NTAuthentication.cs
- QilUnary.cs
- NamespaceList.cs
- LabelTarget.cs
- DispatcherTimer.cs
- TreeNodeStyle.cs
- TransformCryptoHandle.cs
- PlanCompiler.cs
- DATA_BLOB.cs
- StylusButtonEventArgs.cs
- CollectionView.cs
- _BaseOverlappedAsyncResult.cs
- Wildcard.cs
- XmlSerializerAssemblyAttribute.cs
- AuthorizationSection.cs
- RawTextInputReport.cs
- ByteAnimation.cs
- GeneralTransform3D.cs
- TextTreeRootNode.cs
- ColorMap.cs
- SignedXml.cs
- XmlIncludeAttribute.cs
- HttpDebugHandler.cs
- CompareInfo.cs
- EmptyStringExpandableObjectConverter.cs
- DeviceSpecificChoiceCollection.cs
- LayoutDump.cs
- SystemDiagnosticsSection.cs
- Literal.cs
- StateItem.cs
- XpsFontSubsetter.cs
- FormatSettings.cs
- ActivityFunc.cs
- ObjectNavigationPropertyMapping.cs
- SharedTcpTransportManager.cs
- AliasedSlot.cs
- MergePropertyDescriptor.cs
- ConnectionStringsSection.cs
- ScrollBarAutomationPeer.cs
- InvalidOperationException.cs
- PartialTrustVisibleAssemblyCollection.cs
- WSFederationHttpBindingCollectionElement.cs
- Stylus.cs
- WmlValidatorAdapter.cs
- SerializationEventsCache.cs
- ImageIndexEditor.cs
- CodeSnippetExpression.cs
- OperatingSystem.cs
- OleDbConnectionFactory.cs
- _CommandStream.cs
- OverflowException.cs
- BaseComponentEditor.cs
- XPathMultyIterator.cs
- _FtpDataStream.cs
- DataPointer.cs
- MenuItemStyle.cs
- ButtonColumn.cs
- HtmlButton.cs
- DynamicVirtualDiscoSearcher.cs
- EncodingDataItem.cs
- Composition.cs
- ConfigXmlSignificantWhitespace.cs
- GestureRecognitionResult.cs
- SimpleBitVector32.cs
- TransportListener.cs
- HttpListenerRequest.cs
- DeviceContexts.cs
- DataListCommandEventArgs.cs
- Win32Native.cs
- XPathNavigatorKeyComparer.cs
- TextEffect.cs
- OrderedDictionary.cs
- HttpWriter.cs
- HandlerFactoryWrapper.cs
- DataGridColumnEventArgs.cs
- TextServicesDisplayAttribute.cs
- ReadWriteSpinLock.cs
- columnmapfactory.cs
- ParameterCollection.cs
- PointAnimationClockResource.cs
- RowUpdatedEventArgs.cs
- TextBox.cs
- GridViewCommandEventArgs.cs
- ChangesetResponse.cs
- WorkflowControlEndpoint.cs
- RelatedEnd.cs
- HwndHostAutomationPeer.cs
- DesignSurfaceServiceContainer.cs
- MediaElement.cs
- DataBindingExpressionBuilder.cs
- DataServiceRequest.cs