Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DataFieldConverter.cs
- CollectionChange.cs
- CodeTypeReferenceCollection.cs
- CodeTryCatchFinallyStatement.cs
- HtmlInputImage.cs
- AsyncSerializedWorker.cs
- DbFunctionCommandTree.cs
- BrowsableAttribute.cs
- ListViewContainer.cs
- TraceRecord.cs
- DataGridItemEventArgs.cs
- ListView.cs
- SqlLiftWhereClauses.cs
- VirtualPathProvider.cs
- AssemblyInfo.cs
- WebBrowserUriTypeConverter.cs
- RowUpdatedEventArgs.cs
- ViewGenerator.cs
- ExpressionPrefixAttribute.cs
- WebSysDescriptionAttribute.cs
- CollectionChangeEventArgs.cs
- ValidationVisibilityAttribute.cs
- CrossSiteScriptingValidation.cs
- TerminatorSinks.cs
- SecurityToken.cs
- IISUnsafeMethods.cs
- CounterSet.cs
- PresentationAppDomainManager.cs
- StorageScalarPropertyMapping.cs
- NameTable.cs
- EntityDataSourceValidationException.cs
- OwnerDrawPropertyBag.cs
- Errors.cs
- BasicDesignerLoader.cs
- MenuItemBindingCollection.cs
- CodeAttributeDeclaration.cs
- ProtocolElementCollection.cs
- XmlDataSourceView.cs
- EnvelopedPkcs7.cs
- TransactedReceiveScope.cs
- MaskDesignerDialog.cs
- CodeValidator.cs
- thaishape.cs
- DataServiceQuery.cs
- Vector3DAnimationUsingKeyFrames.cs
- TriState.cs
- FileSystemInfo.cs
- AssemblyHash.cs
- WindowInteropHelper.cs
- DefaultValidator.cs
- MatrixAnimationUsingPath.cs
- XmlHierarchicalEnumerable.cs
- LogicalExpr.cs
- PrePrepareMethodAttribute.cs
- PersonalizationAdministration.cs
- FileBasedResourceGroveler.cs
- GraphicsContext.cs
- SystemInformation.cs
- XmlUtil.cs
- CodeCastExpression.cs
- Nullable.cs
- PrintDialogDesigner.cs
- XmlNodeList.cs
- WebConfigurationHost.cs
- Dispatcher.cs
- MetadataProperty.cs
- UpdateInfo.cs
- EntityDesignerDataSourceView.cs
- ViewStateException.cs
- JapaneseCalendar.cs
- ContextMenu.cs
- DataSourceControl.cs
- TextElement.cs
- MetricEntry.cs
- ListMarkerLine.cs
- BindingContext.cs
- SwitchElementsCollection.cs
- ObjectQueryExecutionPlan.cs
- EncryptedKey.cs
- TextFormatterImp.cs
- XmlFormatReaderGenerator.cs
- MsmqTransportSecurity.cs
- DebugHandleTracker.cs
- TextElementEnumerator.cs
- DesignTable.cs
- SafeArrayRankMismatchException.cs
- ValidatorCollection.cs
- MsmqProcessProtocolHandler.cs
- CommonDialog.cs
- ResourceWriter.cs
- AtomPub10CategoriesDocumentFormatter.cs
- SoapWriter.cs
- AlphabeticalEnumConverter.cs
- SiteMapDataSourceView.cs
- RelatedImageListAttribute.cs
- Wildcard.cs
- Helper.cs
- _LocalDataStore.cs
- RegexMatch.cs
- CacheOutputQuery.cs