Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / Data / DesignerDataConnection.cs / 1 / DesignerDataConnection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design.Data { using System; using System.Collections; using System.Windows.Forms; ////// A data connection represents a single connection to a particular /// database or data source in the design tool or in an application /// config file. /// /// A DesignerDataConnection object may also be passed to other APIs /// to get access to services such as database schema information or /// the QueryBuilder host dialog. /// public sealed class DesignerDataConnection { private string _connectionString; private bool _isConfigured; private string _name; private string _providerName; ////// Creates a new instance of a DesignerDataConnection representing a /// database connection stored by a host environment or located in an /// application config file. /// This constructor is used to create non-configured connections. /// public DesignerDataConnection(string name, string providerName, string connectionString) : this(name, providerName, connectionString, false) { } ////// Creates a new instance of a DesignerDataConnection representing a /// database connection stored by a host environment or located in an /// application config file. /// This constructor is used to create both configured and /// non-configured connections. /// public DesignerDataConnection(string name, string providerName, string connectionString, bool isConfigured) { _name = name; _providerName = providerName; _connectionString = connectionString; _isConfigured = isConfigured; } ////// The connection string value for the connection. /// public string ConnectionString { get { return _connectionString; } } ////// Returns true if the connection is configured in the /// application-level configuration file (web.config), false /// otherwise. /// public bool IsConfigured { get { return _isConfigured; } } ////// The name associated with this connection in the design tool. Typically /// this is used to represent the connection in user interface. /// If this is a configured connection (IsConfigured=true) then this is /// the name of the connection defined in the public string Name { get { return _name; } } ////// section of the application web.config. /// /// The name of the ADO.NET managed provider used to access data from this /// connection. /// public string ProviderName { get { return _providerName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebRequestModuleElement.cs
- BaseHashHelper.cs
- ObjectToIdCache.cs
- ResourceIDHelper.cs
- PermissionListSet.cs
- InlineUIContainer.cs
- AssociationSet.cs
- RSAPKCS1KeyExchangeFormatter.cs
- BufferedGraphicsContext.cs
- SqlDependency.cs
- NavigationProperty.cs
- CommandHelpers.cs
- DataControlPagerLinkButton.cs
- GradientBrush.cs
- Imaging.cs
- ComponentCollection.cs
- RectAnimationUsingKeyFrames.cs
- SafeMarshalContext.cs
- ClientConfigurationHost.cs
- RequestStatusBarUpdateEventArgs.cs
- SoapWriter.cs
- ClockController.cs
- WeakRefEnumerator.cs
- ConfigurationLocationCollection.cs
- DataServiceQueryProvider.cs
- ItemDragEvent.cs
- HostingEnvironment.cs
- OdbcDataReader.cs
- JournalEntryStack.cs
- ReferenceService.cs
- QueryResponse.cs
- CompiledQueryCacheEntry.cs
- IIS7WorkerRequest.cs
- InputBindingCollection.cs
- XmlNodeList.cs
- DocumentGridContextMenu.cs
- DocumentViewerBase.cs
- DropShadowBitmapEffect.cs
- UInt32Storage.cs
- StylusButtonCollection.cs
- DataGridViewColumn.cs
- sqlstateclientmanager.cs
- PagesChangedEventArgs.cs
- ObjectViewEntityCollectionData.cs
- XpsFilter.cs
- TypeDescriptor.cs
- HighContrastHelper.cs
- HashHelper.cs
- ClipboardProcessor.cs
- HttpApplicationFactory.cs
- ClientBuildManagerCallback.cs
- TextDpi.cs
- TileModeValidation.cs
- ItemCheckedEvent.cs
- RefreshResponseInfo.cs
- Floater.cs
- SaveFileDialog.cs
- ConstructorBuilder.cs
- CalendarTable.cs
- Pipe.cs
- ThreadExceptionEvent.cs
- TextChangedEventArgs.cs
- BooleanProjectedSlot.cs
- ScrollItemProviderWrapper.cs
- HelpHtmlBuilder.cs
- ProofTokenCryptoHandle.cs
- FullTextState.cs
- DirectoryInfo.cs
- SurrogateDataContract.cs
- KeyTimeConverter.cs
- AnimationLayer.cs
- DataListItemCollection.cs
- SqlBooleanMismatchVisitor.cs
- CompilerHelpers.cs
- EnvelopedPkcs7.cs
- HttpRuntimeSection.cs
- Command.cs
- WebPartsSection.cs
- DataDocumentXPathNavigator.cs
- ServicesExceptionNotHandledEventArgs.cs
- ContractComponent.cs
- ApplicationId.cs
- BindingMemberInfo.cs
- EncodingInfo.cs
- Visitors.cs
- WebServiceClientProxyGenerator.cs
- Encoder.cs
- GeneralTransform.cs
- ExpressionCopier.cs
- Error.cs
- Pair.cs
- WebPartsSection.cs
- FlowLayout.cs
- MetaTableHelper.cs
- SwitchElementsCollection.cs
- InvariantComparer.cs
- RepeaterItemEventArgs.cs
- RijndaelCryptoServiceProvider.cs
- LinkLabel.cs
- PointLightBase.cs