AdoDotNetSourceInformation 类

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

继承层次结构

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

ReservedWords 的情况下调用 GetSchema 方法并创建保留字逗号分隔的列表。每行中的结果集。

线程安全

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

请参阅

参考

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