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
- PerformanceCounter.cs
- QueryLifecycle.cs
- HtmlShimManager.cs
- FormsAuthenticationUser.cs
- TraceHandlerErrorFormatter.cs
- SiteMapHierarchicalDataSourceView.cs
- FutureFactory.cs
- OperandQuery.cs
- CollectionBuilder.cs
- DataGridAutoFormatDialog.cs
- TimestampInformation.cs
- Hex.cs
- CodeDefaultValueExpression.cs
- XmlConvert.cs
- Calendar.cs
- SmtpReplyReader.cs
- QueryNode.cs
- DataGridViewRowEventArgs.cs
- StoreAnnotationsMap.cs
- PageThemeParser.cs
- UrlPath.cs
- TaskFileService.cs
- TemplateField.cs
- DataBindingHandlerAttribute.cs
- StorageComplexPropertyMapping.cs
- CryptoKeySecurity.cs
- StreamInfo.cs
- LinearQuaternionKeyFrame.cs
- ThaiBuddhistCalendar.cs
- PersonalizationAdministration.cs
- oledbconnectionstring.cs
- CacheMemory.cs
- List.cs
- IntSecurity.cs
- RenderDataDrawingContext.cs
- Inline.cs
- WebServiceMethodData.cs
- FilterQueryOptionExpression.cs
- ModelTypeConverter.cs
- DesignerTextBoxAdapter.cs
- TreeChangeInfo.cs
- COM2ComponentEditor.cs
- ToolStripDropDownButton.cs
- TlsSspiNegotiation.cs
- IdentityHolder.cs
- Size3DConverter.cs
- SizeChangedEventArgs.cs
- RawStylusInput.cs
- BindingContext.cs
- ServiceObjectContainer.cs
- ExpressionPrefixAttribute.cs
- CodeDomConfigurationHandler.cs
- HtmlInputRadioButton.cs
- DummyDataSource.cs
- Storyboard.cs
- GeneralTransform3DTo2DTo3D.cs
- ChtmlLinkAdapter.cs
- RadioButton.cs
- DataPagerField.cs
- MarshalByRefObject.cs
- DocumentPaginator.cs
- UriSection.cs
- TextView.cs
- NetNamedPipeBinding.cs
- AbstractDataSvcMapFileLoader.cs
- DataObjectEventArgs.cs
- AndCondition.cs
- ShaderRenderModeValidation.cs
- Int32Converter.cs
- SelectionProviderWrapper.cs
- PrinterResolution.cs
- EdmToObjectNamespaceMap.cs
- Int32Collection.cs
- SByteConverter.cs
- BrushConverter.cs
- TimeBoundedCache.cs
- FixedHighlight.cs
- ToolStripRendererSwitcher.cs
- WebServiceEnumData.cs
- BitmapScalingModeValidation.cs
- HandlerFactoryWrapper.cs
- CheckBoxList.cs
- EntityDataSourceUtil.cs
- SizeValueSerializer.cs
- ObjectContextServiceProvider.cs
- DispatcherExceptionEventArgs.cs
- NestedContainer.cs
- Message.cs
- __ConsoleStream.cs
- TypeDescriptionProviderAttribute.cs
- ControlAdapter.cs
- XmlDictionaryReaderQuotas.cs
- AuthenticateEventArgs.cs
- BuildProviderCollection.cs
- AmbiguousMatchException.cs
- DiscoveryServiceExtension.cs
- SortAction.cs
- DefaultPropertyAttribute.cs
- UpdatePanelControlTrigger.cs
- DispatcherOperation.cs