Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ColorContext.cs
- AQNBuilder.cs
- BuildProviderCollection.cs
- SpellCheck.cs
- RequiredAttributeAttribute.cs
- IntegerValidatorAttribute.cs
- MailWebEventProvider.cs
- PropertyMapper.cs
- CalendarDataBindingHandler.cs
- OleDbEnumerator.cs
- FilteredDataSetHelper.cs
- ObjectDisposedException.cs
- HasCopySemanticsAttribute.cs
- PackageRelationshipCollection.cs
- RadialGradientBrush.cs
- RelationshipFixer.cs
- FormView.cs
- OracleConnectionString.cs
- SizeIndependentAnimationStorage.cs
- ExtendedProtectionPolicyElement.cs
- MemberInfoSerializationHolder.cs
- CompositeScriptReference.cs
- ProtocolElementCollection.cs
- WMIGenerator.cs
- UnsignedPublishLicense.cs
- SystemInfo.cs
- ActiveXContainer.cs
- IOException.cs
- ObjectConverter.cs
- MenuAdapter.cs
- GridViewAutomationPeer.cs
- DriveInfo.cs
- EnumType.cs
- InProcStateClientManager.cs
- VSWCFServiceContractGenerator.cs
- PropertyMappingExceptionEventArgs.cs
- DiagnosticStrings.cs
- nulltextcontainer.cs
- DataRowChangeEvent.cs
- TextProviderWrapper.cs
- TrustLevelCollection.cs
- CngAlgorithm.cs
- FormsAuthenticationEventArgs.cs
- XmlTextWriter.cs
- SymmetricSecurityProtocol.cs
- HtmlEncodedRawTextWriter.cs
- DaylightTime.cs
- OracleConnectionString.cs
- PanelStyle.cs
- PingReply.cs
- RegistrationServices.cs
- SubMenuStyleCollection.cs
- XmlNodeWriter.cs
- CellRelation.cs
- FlowDocument.cs
- PeerInputChannel.cs
- RecordConverter.cs
- XamlSerializer.cs
- DesignTimeTemplateParser.cs
- ConditionalAttribute.cs
- propertyentry.cs
- SQLDecimalStorage.cs
- ComponentCommands.cs
- TrackBarDesigner.cs
- MatrixValueSerializer.cs
- ThreadPool.cs
- Bitmap.cs
- SecUtil.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- ToolStripLabel.cs
- ProgramNode.cs
- StrokeFIndices.cs
- Light.cs
- SaveRecipientRequest.cs
- SrgsElement.cs
- XPathNodeList.cs
- XamlGridLengthSerializer.cs
- DateTime.cs
- ExpressionLexer.cs
- RangeBase.cs
- StaticTextPointer.cs
- FontCacheLogic.cs
- SplitContainer.cs
- RangeValidator.cs
- ControlPager.cs
- diagnosticsswitches.cs
- TempEnvironment.cs
- UriTemplateDispatchFormatter.cs
- SoapAttributeOverrides.cs
- MenuStrip.cs
- BitmapEffectOutputConnector.cs
- Identity.cs
- ImmutableObjectAttribute.cs
- FastEncoderWindow.cs
- TemplateKey.cs
- XmlDataSourceView.cs
- ValidationRuleCollection.cs
- BasicSecurityProfileVersion.cs
- ActivityLocationReferenceEnvironment.cs
- SchemaElementLookUpTable.cs