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
- TraceProvider.cs
- ButtonColumn.cs
- CollectionsUtil.cs
- GeneralTransform3DCollection.cs
- HtmlContainerControl.cs
- File.cs
- CheckBox.cs
- WebSysDisplayNameAttribute.cs
- ImageMap.cs
- CreateParams.cs
- SchemaImporterExtensionsSection.cs
- KeyFrames.cs
- CachedFontFace.cs
- DataRelation.cs
- ExpressionNormalizer.cs
- WebPartMovingEventArgs.cs
- InputProcessorProfilesLoader.cs
- XmlSerializationWriter.cs
- Enlistment.cs
- StorageComplexPropertyMapping.cs
- DataError.cs
- Substitution.cs
- Int64AnimationBase.cs
- TextCompositionManager.cs
- KeyValuePair.cs
- SuppressIldasmAttribute.cs
- OuterGlowBitmapEffect.cs
- ScrollBarRenderer.cs
- FormsAuthenticationTicket.cs
- IPPacketInformation.cs
- AssemblyUtil.cs
- PromptBuilder.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- GlyphTypeface.cs
- Stylus.cs
- NoneExcludedImageIndexConverter.cs
- baseaxisquery.cs
- _PooledStream.cs
- Table.cs
- MouseEvent.cs
- SystemIcmpV4Statistics.cs
- GridViewDeleteEventArgs.cs
- ScalarType.cs
- UserPersonalizationStateInfo.cs
- Char.cs
- InvalidCastException.cs
- SimpleTextLine.cs
- WebPartManagerInternals.cs
- InfiniteTimeSpanConverter.cs
- SqlAliasesReferenced.cs
- ILGenerator.cs
- TypeSystemHelpers.cs
- DataGridRowClipboardEventArgs.cs
- EditCommandColumn.cs
- DocumentViewerBaseAutomationPeer.cs
- DataBinding.cs
- FrugalList.cs
- NoResizeSelectionBorderGlyph.cs
- JsonXmlDataContract.cs
- basenumberconverter.cs
- ProbeDuplex11AsyncResult.cs
- ExceptionHelpers.cs
- DependencyPropertyDescriptor.cs
- DataComponentMethodGenerator.cs
- Throw.cs
- DocumentXPathNavigator.cs
- FixedSOMLineCollection.cs
- RequestTimeoutManager.cs
- EncoderExceptionFallback.cs
- TTSEvent.cs
- CmsUtils.cs
- TypeDescriptionProviderAttribute.cs
- TemplateModeChangedEventArgs.cs
- ImmutableObjectAttribute.cs
- RowCache.cs
- HttpListener.cs
- BitmapImage.cs
- Ticks.cs
- DateRangeEvent.cs
- WebPartRestoreVerb.cs
- CompilerError.cs
- ToolStripSeparator.cs
- NamespaceInfo.cs
- PriorityItem.cs
- Durable.cs
- BaseDataList.cs
- BinaryMethodMessage.cs
- IntegerValidator.cs
- XomlCompilerError.cs
- NavigationEventArgs.cs
- MarkerProperties.cs
- ErasingStroke.cs
- TraceData.cs
- TrackingProfile.cs
- SymbolPair.cs
- PrinterSettings.cs
- MemoryMappedFile.cs
- DiscriminatorMap.cs
- UIntPtr.cs
- ZeroOpNode.cs