AdoDotNetSourceInformation 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.Framework.DataSiteableObject<IVsDataConnection>
Microsoft.VisualStudio.Data.Framework.DataSourceInformation
Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetSourceInformation
Namespace: Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Class AdoDotNetSourceInformation _
Inherits DataSourceInformation _
Implements IVsDataSourceInformation
public class AdoDotNetSourceInformation : DataSourceInformation,
IVsDataSourceInformation
public ref class AdoDotNetSourceInformation : public DataSourceInformation,
IVsDataSourceInformation
type AdoDotNetSourceInformation =
class
inherit DataSourceInformation
interface IVsDataSourceInformation
end
public class AdoDotNetSourceInformation extends DataSourceInformation implements IVsDataSourceInformation
The AdoDotNetSourceInformation type exposes the following members.
Constructors
Name | Description | |
---|---|---|
AdoDotNetSourceInformation() | Initializes a new instance of the AdoDotNetDataSourceInformation class. | |
AdoDotNetSourceInformation(IVsDataConnection) | Initializes a new instance of the AdoDotNetDataSourceInformation class with a data connection object. |
Top
Properties
Name | Description | |
---|---|---|
Connection | Gets the underlying DbConnection object instance used in the class. | |
Item | Gets a data source information property with the specified name. (Inherited from DataSourceInformation.) | |
Site | Gets or sets the object site. (Inherited from DataSiteableObject<T>.) | |
SourceInformation | Gets in-memory data source information provided by an implementation of the DataTable class to represent a table of in-memory data. |
Top
Methods
Name | Description | |
---|---|---|
AddProperty(String) | Adds a property to the list of supported properties. (Inherited from DataSourceInformation.) | |
AddProperty(String, Object) | Adds a property and its value to the list of supported properties. (Inherited from DataSourceInformation.) | |
Contains | Retrieves a Boolean value indicating whether a specified property is contained in this data source information instance. (Inherited from DataSourceInformation.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType() | Gets the Type of the current instance. (Inherited from Object.) | |
GetType(String) | Retrieves the Type value indicating the type of a specified property, thus enabling appropriate conversion of a retrieved value to the correct type. (Inherited from DataSourceInformation.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnSiteChanged | Raises the SiteChanged event. (Overrides DataSiteableObject<T>.OnSiteChanged(EventArgs).) | |
RetrieveValue | Retrieves a value for a specified data source information property. (Overrides DataSourceInformation.RetrieveValue(String).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
SiteChanged | Occurs when the Site property is changed. (Inherited from DataSiteableObject<T>.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IVsDataSourceInformation.Contains | Retrieves a Boolean value indicating whether the specified property is contained in the data source information instance. | |
IVsDataSourceInformation.Item | Gets a data source information property with the specified name. |
Top
Remarks
Following is a list of supported data source information properties:
Property |
Description |
---|---|
Value of the DataSource property. |
|
Value of the DataSourceProductName column in the ADO.NET data source information data table. |
|
Value of the DataSourceProductVersion column in the ADO.NET data source information data table. |
|
Defaults to false. |
|
Text only. |
|
Text only. |
|
Text only. |
|
Text only. |
|
InOut and ReturnValue. |
|
Defaults to true. |
|
Value of Database, if non-null and not empty. |
|
Heuristic based on the SupportedJoinOperators column in the ADO.NET data source information; if any outer join is supported, returns true, otherwise returns false. |
|
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. |
|
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. |
|
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.