Share via


AdoDotNetDataSourceInformation Class

Provides information about an ADO.NET data source in the form of properties passed as name/value pairs.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.ObjectWithSite
    Microsoft.VisualStudio.Data.DataSourceInformation
      Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetDataSourceInformation

Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public Class AdoDotNetDataSourceInformation _
    Inherits DataSourceInformation
public class AdoDotNetDataSourceInformation : DataSourceInformation
public ref class AdoDotNetDataSourceInformation : public DataSourceInformation
type AdoDotNetDataSourceInformation =  
    class
        inherit DataSourceInformation
    end
public class AdoDotNetDataSourceInformation extends DataSourceInformation

The AdoDotNetDataSourceInformation type exposes the following members.

Constructors

  Name Description
Public method AdoDotNetDataSourceInformation(DataConnection) Class constructor. Initializes an instance of the AdoDotNetDataSourceInformation class with a DataConnection object.
Public method AdoDotNetDataSourceInformation(DataConnection, ICollection) Class constructor. Initializes an instance of the AdoDotNetDataSourceInformation class with a DataConnection object and a collection of connection properties.
Public method AdoDotNetDataSourceInformation(DataConnection, IDictionary) Class constructor. Initializes an instance of the AdoDotNetDataSourceInformation class with a DataConnection object and a connection properties IDictionary object.

Top

Properties

  Name Description
Protected property Connection Retrieves the data connection used to retrieve data source properties. (Inherited from DataSourceInformation.)
Protected property ConnectionSupport Retrieves the provider connection support object associated with the data connection. (Inherited from DataSourceInformation.)
Protected property DataSourceInformation Retrieves in-memory data source information provided by an implementation of the DataTable class to represent a table of in-memory data.
Public property Item Retrieves a data source information property with the specified name. (Overrides DataSourceInformation.Item[String].)
Protected property ProviderObject Retrieves the underlying provider connection object as exposed by the connection support object. (Inherited from DataSourceInformation.)
Public property Site Retrieves or sets the object site. (Inherited from ObjectWithSite.)

Top

Methods

  Name Description
Protected method AddProperty(String) Adds a property to the list of supported properties. (Inherited from DataSourceInformation.)
Protected method AddProperty(String, Object) Adds a property and its value to the list of supported properties. (Inherited from DataSourceInformation.)
Public method Contains Retrieves a Boolean value indicating whether the specified property is contained in this data source information instance. (Overrides DataSourceInformation.Contains(String).)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSiteChanged Raises the SiteChanged event. (Inherited from ObjectWithSite.)
Protected method RetrieveValue Retrieves a value for a specified data source information property. (Overrides DataSourceInformation.RetrieveValue(String).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event SiteChanged Event that is raised when the Site property is changed. (Inherited from ObjectWithSite.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IObjectWithSite.GetSite Retrieves the last site set using the IObjectWithSite.SetSite method. In cases where there is no known site, the object returns an exception. (Inherited from ObjectWithSite.)
Explicit interface implemetationPrivate method IObjectWithSite.SetSite Provides the site's pointer to the site object. (Inherited from ObjectWithSite.)

Top

Remarks

Following is a list of supported data source information properties:

Property

Description

DataSourceName

Value of the DataSource property.

DataSourceProduct

Value of the DataSourceProductName column in the ADO.NET data source information data table.

DataSourceVersion

Value of the DataSourceProductVersion column in the ADO.NET data source information data table.

SupportsNestedTransactions

Defaults to false.

CommandPrepareSupport

Text only.

CommandDeriveParametersSupport

Text only.

CommandDeriveSchemaSupport

Text only.

CommandExecuteSupport

Text only.

CommandParameterSupport

InOut and ReturnValue.

SupportsCommandTimeout

Defaults to true.

DefaultCatalog

Value of Database, if non-null and not empty.

SupportsAnsi92Sql

Heuristic based on the SupportedJoinOperators column in the ADO.NET data source information; if any outer join is supported, returns true, otherwise returns false.

IdentifierPartsCaseSensitive

true if the value of the IdentifierCase column in the ADO.NET data source information includes Sensitive; false if the value is Insensitive; nulla null reference (Nothing in Visual Basic) if neither.

QuotedIdentifierPartsCaseSensitive

true if the value of the QuotedIdentifierCase column in the ADO.NET data source information includes Sensitive; false if the value is Insensitive; nulla null reference (Nothing in Visual Basic) if neither.

ReservedWords

Calls the GetSchema method with ReservedWords and creates a comma-delimited list of reserved words from each row in the result set.

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.

See Also

Reference

Microsoft.VisualStudio.Data.AdoDotNet Namespace