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
- GroupBoxAutomationPeer.cs
- ClientFormsIdentity.cs
- SerializerDescriptor.cs
- ResourceExpressionBuilder.cs
- RemotingServices.cs
- MobileRedirect.cs
- GeometryModel3D.cs
- RequestDescription.cs
- Int64Storage.cs
- CodeLabeledStatement.cs
- SystemIcmpV6Statistics.cs
- PenThreadWorker.cs
- DetectRunnableInstancesTask.cs
- IdentifierService.cs
- ErrorProvider.cs
- KnownBoxes.cs
- MessageDirection.cs
- ItemCheckedEvent.cs
- diagnosticsswitches.cs
- OrderedDictionaryStateHelper.cs
- HebrewNumber.cs
- TextPattern.cs
- ProviderCollection.cs
- ColorTransform.cs
- COM2PropertyBuilderUITypeEditor.cs
- GenerateScriptTypeAttribute.cs
- UnsafeNativeMethods.cs
- cryptoapiTransform.cs
- AppDomainShutdownMonitor.cs
- TextBoxView.cs
- TextParagraph.cs
- RenamedEventArgs.cs
- RecognizerStateChangedEventArgs.cs
- Pool.cs
- CardSpaceShim.cs
- TextChange.cs
- MetadataArtifactLoaderComposite.cs
- HostUtils.cs
- XmlSchemaValidationException.cs
- WrappedReader.cs
- PagedDataSource.cs
- DifferencingCollection.cs
- FigureParaClient.cs
- RuleSetDialog.Designer.cs
- PathSegmentCollection.cs
- Application.cs
- unsafenativemethodsother.cs
- RecognitionEventArgs.cs
- DES.cs
- IDReferencePropertyAttribute.cs
- FixedSOMContainer.cs
- CharacterBuffer.cs
- StylusPointPropertyInfoDefaults.cs
- SoapSchemaImporter.cs
- RegexCaptureCollection.cs
- BrowserCapabilitiesCodeGenerator.cs
- DataGridViewCellPaintingEventArgs.cs
- SiteMapPath.cs
- CodeMethodReturnStatement.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- LinqDataSourceDisposeEventArgs.cs
- OutputCacheModule.cs
- HebrewCalendar.cs
- Bezier.cs
- GroupDescription.cs
- TextFormatterContext.cs
- VirtualDirectoryMappingCollection.cs
- ProcessInfo.cs
- GlobalProxySelection.cs
- SequentialWorkflowHeaderFooter.cs
- DataTableMappingCollection.cs
- DetailsViewPageEventArgs.cs
- ProfilePropertySettingsCollection.cs
- ScalarConstant.cs
- DataKey.cs
- SystemInfo.cs
- KeySplineConverter.cs
- ArrangedElementCollection.cs
- MembershipValidatePasswordEventArgs.cs
- NetworkAddressChange.cs
- DispatchWrapper.cs
- MsmqInputMessagePool.cs
- LocatorManager.cs
- RoleGroupCollection.cs
- TemplateControl.cs
- Misc.cs
- LinqDataSourceDisposeEventArgs.cs
- SQLSingleStorage.cs
- DbCommandTree.cs
- DateTimeParse.cs
- FixedNode.cs
- CodeGenerator.cs
- ListParagraph.cs
- MultiDataTrigger.cs
- LicFileLicenseProvider.cs
- RemoteCryptoSignHashRequest.cs
- ResourceDictionary.cs
- CqlParserHelpers.cs
- ImageAttributes.cs
- ReadContentAsBinaryHelper.cs