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
- PropertyKey.cs
- TTSEvent.cs
- MultipartIdentifier.cs
- DemultiplexingDispatchMessageFormatter.cs
- TextParagraphProperties.cs
- MeasureData.cs
- EntityPropertyMappingAttribute.cs
- DefaultMemberAttribute.cs
- Single.cs
- PublishLicense.cs
- HttpCachePolicy.cs
- WebRequest.cs
- DataFormat.cs
- Utils.cs
- WebPartRestoreVerb.cs
- GlobalAclOperationRequirement.cs
- DataViewSetting.cs
- DataColumnMappingCollection.cs
- EdmScalarPropertyAttribute.cs
- Ref.cs
- HttpInputStream.cs
- basecomparevalidator.cs
- ImmComposition.cs
- DataGridViewCellCollection.cs
- SubMenuStyle.cs
- InputDevice.cs
- CorrelationToken.cs
- NumberFormatInfo.cs
- StatusBarPanelClickEvent.cs
- ValueTable.cs
- Monitor.cs
- TakeOrSkipQueryOperator.cs
- ListViewInsertedEventArgs.cs
- DocumentOrderComparer.cs
- AssemblyBuilder.cs
- DataContractSerializerSection.cs
- EastAsianLunisolarCalendar.cs
- SqlFacetAttribute.cs
- FormattedTextSymbols.cs
- ToolStripLocationCancelEventArgs.cs
- PagesChangedEventArgs.cs
- GridSplitter.cs
- TopClause.cs
- WindowsListViewScroll.cs
- GetFileNameResult.cs
- DiagnosticsElement.cs
- RankException.cs
- DefaultSerializationProviderAttribute.cs
- BindStream.cs
- RoutingTable.cs
- ServiceOperationWrapper.cs
- TextBreakpoint.cs
- DoubleLink.cs
- DefaultHttpHandler.cs
- DelegateHelpers.cs
- WebCategoryAttribute.cs
- QilTargetType.cs
- ValuePatternIdentifiers.cs
- MinMaxParagraphWidth.cs
- TableLayoutColumnStyleCollection.cs
- PtsHost.cs
- CanonicalFontFamilyReference.cs
- CalloutQueueItem.cs
- EDesignUtil.cs
- ClientConfigurationHost.cs
- MultiSelectRootGridEntry.cs
- RectangleConverter.cs
- HttpHandler.cs
- LeftCellWrapper.cs
- ExpressionBindingsDialog.cs
- SchemaInfo.cs
- SqlPersonalizationProvider.cs
- Random.cs
- TokenizerHelper.cs
- TypedColumnHandler.cs
- EventTrigger.cs
- WithParamAction.cs
- WindowsUpDown.cs
- SocketInformation.cs
- FontSourceCollection.cs
- DesignerAutoFormat.cs
- DataServicePagingProviderWrapper.cs
- HasCopySemanticsAttribute.cs
- complextypematerializer.cs
- PenLineCapValidation.cs
- GridViewUpdateEventArgs.cs
- EntityDataSourceView.cs
- CallSiteHelpers.cs
- StylusPlugInCollection.cs
- ProfilePropertySettingsCollection.cs
- Effect.cs
- SelectionChangedEventArgs.cs
- LinearGradientBrush.cs
- TimeoutHelper.cs
- MultipleViewPatternIdentifiers.cs
- TextFindEngine.cs
- ControlType.cs
- RoleManagerEventArgs.cs
- XmlConvert.cs
- EntityModelBuildProvider.cs