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
- Missing.cs
- DocumentXPathNavigator.cs
- ErrorFormatter.cs
- EntitySqlQueryCacheEntry.cs
- DataReaderContainer.cs
- CheckPair.cs
- PolicyReader.cs
- GatewayDefinition.cs
- TypeResolvingOptionsAttribute.cs
- AspNetHostingPermission.cs
- KeyValuePairs.cs
- Timer.cs
- MdImport.cs
- URLEditor.cs
- DataColumnPropertyDescriptor.cs
- StyleHelper.cs
- XPathAncestorIterator.cs
- HtmlElement.cs
- TableColumn.cs
- PropertyGridView.cs
- CreateUserWizardStep.cs
- Parameter.cs
- ISFTagAndGuidCache.cs
- ReadOnlyObservableCollection.cs
- DbExpressionVisitor_TResultType.cs
- updatecommandorderer.cs
- OletxCommittableTransaction.cs
- GeometryCombineModeValidation.cs
- XmlIgnoreAttribute.cs
- HtmlInputReset.cs
- FormViewInsertedEventArgs.cs
- FormatVersion.cs
- SchemaElementLookUpTableEnumerator.cs
- HebrewCalendar.cs
- StylusEditingBehavior.cs
- TriState.cs
- DataGridViewCellValidatingEventArgs.cs
- IndexerNameAttribute.cs
- HandlerFactoryCache.cs
- StyleBamlTreeBuilder.cs
- HttpResponseBase.cs
- CollectionDataContract.cs
- ResourceExpressionBuilder.cs
- FileDialog_Vista_Interop.cs
- AuthenticationModuleElement.cs
- CodeTypeOfExpression.cs
- fixedPageContentExtractor.cs
- RawKeyboardInputReport.cs
- InfoCardClaimCollection.cs
- nulltextcontainer.cs
- FieldInfo.cs
- TypeNameHelper.cs
- MenuEventArgs.cs
- TextEndOfParagraph.cs
- StyleSheetRefUrlEditor.cs
- XPathMessageContext.cs
- SchemaTypeEmitter.cs
- DependentList.cs
- PresentationAppDomainManager.cs
- ObjectConverter.cs
- ProfilePropertySettingsCollection.cs
- TableRow.cs
- ContextStack.cs
- BaseAsyncResult.cs
- ColumnBinding.cs
- ExtendedTransformFactory.cs
- SymLanguageVendor.cs
- EntityParameter.cs
- AlphabetConverter.cs
- XmlUtil.cs
- PageOutputColor.cs
- HtmlInputImage.cs
- XhtmlConformanceSection.cs
- SystemEvents.cs
- DocumentScope.cs
- MemberDescriptor.cs
- MailAddressCollection.cs
- CodeFieldReferenceExpression.cs
- PackageRelationshipCollection.cs
- JsonDeserializer.cs
- XPathCompileException.cs
- BitVector32.cs
- HighlightVisual.cs
- XmlTypeAttribute.cs
- TextSerializer.cs
- DbReferenceCollection.cs
- TextWriter.cs
- InstanceNameConverter.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ScriptResourceInfo.cs
- tabpagecollectioneditor.cs
- BitmapImage.cs
- FileCodeGroup.cs
- figurelengthconverter.cs
- RecognitionResult.cs
- SimpleColumnProvider.cs
- FolderBrowserDialogDesigner.cs
- TrackBarRenderer.cs
- FontWeights.cs
- WebPartManager.cs