Code:
/ FX-1434 / FX-1434 / 1.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
- NameTable.cs
- MetadataArtifactLoaderFile.cs
- FrameworkElement.cs
- WebBaseEventKeyComparer.cs
- AssemblyResourceLoader.cs
- AppLevelCompilationSectionCache.cs
- ListViewItemMouseHoverEvent.cs
- Verify.cs
- TimeoutValidationAttribute.cs
- GlobalProxySelection.cs
- PeerResolverSettings.cs
- WebControlAdapter.cs
- ListControlBuilder.cs
- DataService.cs
- WindowsStatusBar.cs
- ColumnMapTranslator.cs
- FormViewCommandEventArgs.cs
- Label.cs
- Parameter.cs
- SqlCommandSet.cs
- PageWrapper.cs
- RenderTargetBitmap.cs
- WindowsAuthenticationEventArgs.cs
- PropertyDescriptorGridEntry.cs
- TextRunCacheImp.cs
- IntSecurity.cs
- SecurityCriticalDataForSet.cs
- WindowsToolbarAsMenu.cs
- XmlC14NWriter.cs
- ImmutableObjectAttribute.cs
- FtpWebResponse.cs
- VirtualPathUtility.cs
- StylusPointProperty.cs
- XomlCompiler.cs
- XmlTextWriter.cs
- XmlSchemaComplexType.cs
- IntSecurity.cs
- NonBatchDirectoryCompiler.cs
- Region.cs
- Error.cs
- ParseNumbers.cs
- ComboBoxRenderer.cs
- WindowsSolidBrush.cs
- _BufferOffsetSize.cs
- AnimationClockResource.cs
- PrivateFontCollection.cs
- wgx_commands.cs
- ToolStripGrip.cs
- MulticastNotSupportedException.cs
- MediaTimeline.cs
- WebBrowserNavigatingEventHandler.cs
- ResourcesGenerator.cs
- DynamicResourceExtension.cs
- KeyBinding.cs
- PageWrapper.cs
- NumericUpDownAccelerationCollection.cs
- Matrix.cs
- TypeLibConverter.cs
- ReverseInheritProperty.cs
- CommandLineParser.cs
- HttpListenerException.cs
- Logging.cs
- MimeParameterWriter.cs
- BindingElementCollection.cs
- COM2ColorConverter.cs
- CodeAttributeDeclaration.cs
- SymDocumentType.cs
- CellConstantDomain.cs
- EventProperty.cs
- SerialStream.cs
- DataBinding.cs
- MutexSecurity.cs
- RenamedEventArgs.cs
- Geometry3D.cs
- InternalConfigEventArgs.cs
- QueryTask.cs
- SymmetricAlgorithm.cs
- HttpHeaderCollection.cs
- PaginationProgressEventArgs.cs
- Icon.cs
- CommandField.cs
- ValidationErrorEventArgs.cs
- CircleHotSpot.cs
- AsymmetricKeyExchangeFormatter.cs
- DefaultEvaluationContext.cs
- OleDbCommandBuilder.cs
- TreeSet.cs
- XPathMultyIterator.cs
- DbModificationCommandTree.cs
- XamlGridLengthSerializer.cs
- TreeBuilderBamlTranslator.cs
- TextElementCollection.cs
- ValidatedControlConverter.cs
- PropertyPathWorker.cs
- ResourceDescriptionAttribute.cs
- TabControlCancelEvent.cs
- SigningCredentials.cs
- CheckoutException.cs
- GroupBox.cs
- RequestedSignatureDialog.cs