AdoDotNetConnectionProperties Class
Provides an implementation of the DataConnectionProperties class using the ADO.NET connection string builder base class (DbConnectionStringBuilder).
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Data.DataConnectionProperties
Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetConnectionProperties
Namespace: Microsoft.VisualStudio.Data.AdoDotNet
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Class AdoDotNetConnectionProperties _
Inherits DataConnectionProperties _
Implements ICustomTypeDescriptor, IDictionary, ICollection, IEnumerable
public class AdoDotNetConnectionProperties : DataConnectionProperties,
ICustomTypeDescriptor, IDictionary, ICollection, IEnumerable
public ref class AdoDotNetConnectionProperties : public DataConnectionProperties,
ICustomTypeDescriptor, IDictionary, ICollection, IEnumerable
type AdoDotNetConnectionProperties =
class
inherit DataConnectionProperties
interface ICustomTypeDescriptor
interface IDictionary
interface ICollection
interface IEnumerable
end
public class AdoDotNetConnectionProperties extends DataConnectionProperties implements ICustomTypeDescriptor, IDictionary, ICollection, IEnumerable
The AdoDotNetConnectionProperties type exposes the following members.
Constructors
Name | Description | |
---|---|---|
AdoDotNetConnectionProperties(String) | Class constructor. Instantiates a parameterized instance of the AdoDotNetConnectionProperties class that provides the ADO.NET provider name. | |
AdoDotNetConnectionProperties(String, String) | Parameterized class constructor. Instantiates a parameterized instance of the AdoDotNetConnectionProperties class that provides the ADO.NET provider invariant name and a provider connection string. |
Top
Properties
Name | Description | |
---|---|---|
ConnectionStringBuilder | Retrieves the underlying ADO.NET connection string builder object for the current connection properties instance. | |
IsComplete | Retrieves a Boolean value indicating whether a given connection string is complete. (Overrides DataConnectionProperties.IsComplete.) | |
IsExtensible | Retrieves or sets a Boolean value indicating whether the DDEX Provider connection properties are extensible. (Overrides DataConnectionProperties.IsExtensible.) | |
Item | Retrieves or sets a value for a specified property on the DDEX Provider. (Overrides DataConnectionProperties.Item.) | |
OrderedProperties | Retrieves a collection of property names specifying a reasonable (or necessary) order for the properties when represented in string form. (Inherited from DataConnectionProperties.) |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds a new property to the current connection properties collection. (Overrides DataConnectionProperties.Add(String).) | |
AddProperty(PropertyDescriptor, array<Attribute[]) | Dynamically adds a new property to the collection of properties natively recognized by the current instance of the DataConnectionProperties class. (Inherited from DataConnectionProperties.) | |
AddProperty(String, Type, array<Attribute[]) | Dynamically adds a new property to the collection of properties natively recognized by this data connection properties instance. (Inherited from DataConnectionProperties.) | |
Contains | Tests whether a specified property is a member of the current set of connection properties. (Overrides DataConnectionProperties.Contains(String).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
EquivalentTo | Tests whether the current instance of the class is equivalent to another class instance. (Overrides DataConnectionProperties.EquivalentTo(DataConnectionProperties).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetBasicProperties | Retrieves an array of property name values representing the set of "basic" properties recognizable by the current AdoDotNetConnectionProperties class instance. (Overrides DataConnectionProperties.GetBasicProperties().) | |
GetEnumerator | Retrieves an enumerator that enumerates over all of the known connection properties and their values, if any. (Overrides DataConnectionProperties.GetEnumerator().) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetNameAsString | Formats a property name for placement in a connection string. (Inherited from DataConnectionProperties.) | |
GetProperties() | Retrieves the collection of descriptors of all currently known properties. (Inherited from DataConnectionProperties.) | |
GetProperties(array<Attribute[]) | Retrieves the collection of descriptors of currently known properties that match a specified set of attributes. (Inherited from DataConnectionProperties.) | |
GetProperty | Retrieves the descriptor of a property with the specified property name. (Inherited from DataConnectionProperties.) | |
GetSynonyms | Retrieves an array list of synonyms for a specified data connection property. (Overrides DataConnectionProperties.GetSynonyms(String).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValueAsString | Formats a property value for placement in a connection string. (Inherited from DataConnectionProperties.) | |
Initialize | Initializes the current DataConnectionProperties instance to its default state, then sets each property in the specified dictionary. (Inherited from DataConnectionProperties.) | |
InitializeProperties | Initializes the set of natively recognized properties for the current DataConnectionProperties instance. (Inherited from DataConnectionProperties.) | |
InitializeSynonyms | Initializes the set of synonyms available for each natively recognized property in the current DataConnectionProperties instance. (Inherited from DataConnectionProperties.) | |
InitializeValue | Initializes the value of a specified connection property. (Inherited from DataConnectionProperties.) | |
InitializeValues | Initializes values for a specified set of properties using a dictionary of name/value pairs. (Inherited from DataConnectionProperties.) | |
IsSensitive | Returns a Boolean value indicating whether a specified property contains sensitive information. (Overrides DataConnectionProperties.IsSensitive(String).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ModifyProperty | Modifies an existing property of which the current DataConnectionProperties instance is natively aware. (Inherited from DataConnectionProperties.) | |
OnPropertyChanged | Raises the PropertyChanged event. (Inherited from DataConnectionProperties.) | |
Parse | Disassembles the components of a connection string into a set of connection properties as set in the current AdoDotNetConnectionProperties class instance. (Overrides DataConnectionProperties.Parse(String).) | |
ReadNameFromString | Reads a property name from a connection string starting at a specified index, then updates the index to point to a position immediately following the property name. (Inherited from DataConnectionProperties.) | |
ReadValueFromString | Reads a property value from a connection string starting at a specified index, converts it to the correct type, and updates the index to point to a position following the property name. (Inherited from DataConnectionProperties.) | |
Remove | Removes a property from the current connection property collection. (Overrides DataConnectionProperties.Remove(String).) | |
RemoveProperty | Removes a natively recognized property. (Inherited from DataConnectionProperties.) | |
Reset() | Resets a connection property to its initial value. (Overrides DataConnectionProperties.Reset().) | |
Reset(String) | Reverts a property value to its initial value. (Overrides DataConnectionProperties.Reset(String).) | |
ResolveSynonym | Attempts to resolves a synonym for the PropertyDescriptor associated with a base property by returning the base property descriptor. (Inherited from DataConnectionProperties.) | |
SetSynonyms | Sets a list of strings as synonyms of a specified base property name. (Inherited from DataConnectionProperties.) | |
ShouldPersistProperty | Indicates whether a property should be persisted when building a connection string. (Inherited from DataConnectionProperties.) | |
Test | Tests that the current set of connection properties will successfully open a connection. (Overrides DataConnectionProperties.Test().) | |
ToDisplayString | Retrieves a string representation of the current set of data connection properties that are suitable for on-screen display. (Overrides DataConnectionProperties.ToDisplayString().) | |
ToFullString | Retrieves a string representation of the current set of data connection properties for this instance. (Overrides DataConnectionProperties.ToFullString().) | |
ToString | Retrieves a full string representation of the current connection properties. (Inherited from DataConnectionProperties.) | |
ToTestString | Retrieves a form of the connection string that can be used for testing the connection. |
Top
Events
Name | Description | |
---|---|---|
PropertyChanged | Event that fires on the occurrence of a change to a connection property. (Inherited from DataConnectionProperties.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IDictionary.Add | Adds an element as a key/value pair to the specified IDictionaryinstance. | |
IDictionary.Clear | Removes all elements from the specified IDictionary instance. | |
IDictionary.Contains | Determines whether the current IDictionaryinstance contains an element with the specified key. | |
ICollection.CopyTo | Copies the set of connection properties to an array, starting at the specified array index. | |
ICollection.Count | Retrieves the number of elements contained in the current ICollectioninstance. | |
ICustomTypeDescriptor.GetAttributes | Retrieves a collection of custom attributes for the specified object. | |
ICustomTypeDescriptor.GetClassName | Retrieves the class name of the specified object. | |
ICustomTypeDescriptor.GetComponentName | Retrieves the name of the specified object. | |
ICustomTypeDescriptor.GetConverter | Retrieves a type converter for the specified object. | |
ICustomTypeDescriptor.GetDefaultEvent | Retrieves the default event for the specified object. | |
ICustomTypeDescriptor.GetDefaultProperty | Retrieves the default property for the specified object. | |
ICustomTypeDescriptor.GetEditor | Retrieves an editor of the specified type for this object. | |
IDictionary.GetEnumerator | Returns an IDictionaryEnumerator object for the IDictionary instance. | |
IEnumerable.GetEnumerator | Retrieves an enumerator that is able to iterate through the connection properties collection. | |
ICustomTypeDescriptor.GetEvents() | Retrieves the events for the specified instance of a component. | |
ICustomTypeDescriptor.GetEvents(array<Attribute[]) | Retrieves the events for this instance of a component using the specified attribute array as a filter. | |
ICustomTypeDescriptor.GetProperties() | Retrieves the properties for the specified instance of a component. | |
ICustomTypeDescriptor.GetProperties(array<Attribute[]) | Retrieves the properties for the specified instance of a component using the attribute array as a filter. | |
ICustomTypeDescriptor.GetPropertyOwner | Retrieves an object that contains the property described by the specified property descriptor. | |
IDictionary.IsFixedSize | Retrieves a Boolean value indicating whether the specified IDictionaryinstance has a fixed size. | |
IDictionary.IsReadOnly | Retrieves a Boolean indicating whether the IDictionaryinstance is read-only. | |
ICollection.IsSynchronized | Retrieves a value that indicates whether access to the connection properties collection is synchronized (thread safe). | |
IDictionary.Item | Retrieves an item, or element, with the specified key from the current IDictionaryinstance. | |
IDictionary.Keys | Retrieves an ICollection object containing the keys for the IDictionary instance. | |
IDictionary.Remove | Removes the element with the specified key from the IDictionary instance. | |
ICollection.SyncRoot | Retrieves an object that can be used to synchronize access to the connection properties collection. | |
IDictionary.Values | Retrieves an ICollection object containing the values in the specified IDictionary instance. | |
IDataConnectionProperties.PropertyChanged | Event that fires on the occurrence of a change to a connection property. (Inherited from DataConnectionProperties.) |
Top
Remarks
It is not expected that a DDEX Provider based on ADO.NET will need to customize object enumeration. However, this class is a base class that you can extend in scenarios where added or modified enumeration functionality inside Visual Studio is required.
Most of the public methods on this class are overridden from the base class (DataConnectionProperties class) because this implementation does not rely on any of the base class for help with tasks like parsing and building; rather, they typically delegate to the equivalent call on the connection string builder object.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.