提供有关 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 | 获取具有指定名称的一个数据源属性的相关信息。 |
页首
备注
以下支持数据源的信息属性的列表:
属性 |
说明 |
---|---|
DataSource 属性的值。 |
|
DataSourceProductName 列的值。ADO.NET 数据源信息数据表中。 |
|
DataSourceProductVersion 列的值。ADO.NET 数据源信息数据表中。 |
|
默认为 false。 |
|
纯文本。 |
|
纯文本。 |
|
纯文本。 |
|
纯文本。 |
|
InOut 和 ReturnValue。 |
|
默认为 true。 |
|
Database的值,因此,如果非null和非空。 |
|
根据 ADO.NET 数据源信息的 SupportedJoinOperators 列的试探法;如果任何外部联接支持,true返回;否则返回 false。 |
|
true,如果 IdentifierCase 列的值。ADO.NET 数据源的信息包括 Sensitive; false,如果该值为 Insensitive; nullnull 引用(在 Visual Basic 中为 Nothing),如果。 |
|
true,如果 QuotedIdentifierCase 列的值。ADO.NET 数据源的信息包括 Sensitive; false,如果该值为 Insensitive; nullnull 引用(在 Visual Basic 中为 Nothing),如果。 |
|
调用带有 ReservedWords 的 GetSchema 方法并创建逗号分隔列表从每行的保留字在结果。 |
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。