AdoDotNetSourceInformation 类

提供有关 ADO.NET 数据源的信息以作为名称/值传递的属性对的形式。

继承层次结构

System.Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<IVsDataConnection>
    Microsoft.VisualStudio.Data.Framework.DataSourceInformation
      Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetSourceInformation

命名空间:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
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

AdoDotNetSourceInformation 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 AdoDotNetSourceInformation() 初始化 AdoDotNetDataSourceInformation 类的新实例。
公共方法 AdoDotNetSourceInformation(IVsDataConnection) 初始化 AdoDotNetDataSourceInformation 选件类的新实例与数据连接对象的。

页首

属性

  名称 说明
受保护的属性 Connection 获取基础 DbConnection 对象实例中选件类。
公共属性 Item 获取具有指定名称的一个数据源属性的相关信息。 (继承自 DataSourceInformation。)
公共属性 Site 获取或设置对象站点。 (继承自 DataSiteableObject<T>。)
受保护的属性 SourceInformation 获取内存中数据源提供的信息由 DataTable 选件类的实现表示内存中的数据表。

页首

方法

  名称 说明
受保护的方法 AddProperty(String) 将属性添加到支持的属性列表。 (继承自 DataSourceInformation。)
受保护的方法 AddProperty(String, Object) 添加属性并将其值设置为支持的属性列表。 (继承自 DataSourceInformation。)
公共方法 Contains 检索值指示指定属性是否的 Boolean 值此数据源信息实例包含。 (继承自 DataSourceInformation。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType() 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 GetType(String) 检索值指示指定属性的类型 Type 值,从而使一个检索到的值的相应转换为正确的类型。 (继承自 DataSourceInformation。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnSiteChanged 引发 SiteChanged 事件。 (重写 DataSiteableObject<T>.OnSiteChanged(EventArgs)。)
受保护的方法 RetrieveValue 检索一个指定数据源的信息属性的值。 (重写 DataSourceInformation.RetrieveValue(String)。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

事件

  名称 说明
公共事件 SiteChanged Site 属性更改时发生。 (继承自 DataSiteableObject<T>。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IVsDataSourceInformation.Contains 检索指示指定的属性是否的 Boolean 值在数据源信息实例包含。
显式接口实现私有属性 IVsDataSourceInformation.Item 获取具有指定名称的一个数据源属性的相关信息。

页首

备注

以下支持数据源的信息属性的列表:

属性

说明

DataSourceName

DataSource 属性的值。

DataSourceProduct

DataSourceProductName 列的值。ADO.NET 数据源信息数据表中。

DataSourceVersion

DataSourceProductVersion 列的值。ADO.NET 数据源信息数据表中。

SupportsNestedTransactions

默认为 false。

CommandPrepareSupport

纯文本。

CommandDeriveParametersSupport

纯文本。

CommandDeriveSchemaSupport

纯文本。

CommandExecuteSupport

纯文本。

CommandParameterSupport

InOut 和 ReturnValue。

SupportsCommandTimeout

默认为 true。

DefaultCatalog

Database的值,因此,如果非null和非空。

SupportsAnsi92Sql

根据 ADO.NET 数据源信息的 SupportedJoinOperators 列的试探法;如果任何外部联接支持,true返回;否则返回 false。

IdentifierPartsCaseSensitive

true,如果 IdentifierCase 列的值。ADO.NET 数据源的信息包括 Sensitive; false,如果该值为 Insensitive; nullnull 引用(在 Visual Basic 中为 Nothing),如果。

QuotedIdentifierPartsCaseSensitive

true,如果 QuotedIdentifierCase 列的值。ADO.NET 数据源的信息包括 Sensitive; false,如果该值为 Insensitive; nullnull 引用(在 Visual Basic 中为 Nothing),如果。

ReservedWords

调用带有 ReservedWordsGetSchema 方法并创建逗号分隔列表从每行的保留字在结果。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.Data.Framework.AdoDotNet 命名空间